Application developed by Snow Leopard did not appear on Leopard

I developed a simple application in Snow Leopard. The build configurations on which it was compiled into Snow Leopard are as follows: (10.5 | Release | i386).

When I tried to compile it using the above configurations, he gave me this error in the application delegation file, which was created automatically when the project was created: the protocol declaration for "NSApplicationDelegate" could not be found. Therefore, I deleted the <NSApplicationDelegate>header file from its file and was compiled successfully.

Although it works successfully in Snow Leopard, to my surprise, its .app file does not seem to be executable in Leopard.

Can someone tell me why he exhibits such strange behavior and how can I solve it?

Thanks,

Miraaj

+3
source share
4 answers

There are many settings that must be set correctly to complete this run. (One fine day, I would really like Xcode to have the magic “What systems should this program work for?”, Which then installs everything correctly, but it's neither here nor there ...)

Project → Change Project Settings → Tab Tab: Make sure that the architecture / base SDK is set to Mac OS X 10.5.

Project -> Edit Project Settings -> Build Tab: Make sure the Architectures / Valid Architectures list contains the type of system that Leopard is running on (easily exclude the ppc option).

→ → "": , "/ " .

Project → Edit Project Settings → Build Tab: , /Mac OS X Mac OS X 10.5.

Project → Edit Active Target → Build Tab:


, 10.6, . , ( Google, , , ). , , " Leopard".

? ? - ?

Leopard (cd MyApp.app\Contents\MacOS, . /MyApp ). ? , ?

, , , , .

+1

. : MacOS X

0

Info.plist Minimum system version (LSMinimumSystemVersion)

0

miraaj: ~ keyss $otool -L -arch all/Users/keyss/Desktop/Release_2/XYZ.app/Contents/MacOS/* /Users/keyss/Desktop/Release _2/XYZ.app/Contents/MacOS/XYZ ( x86_64): /System/Library/Frameworks/ Cocoa.framework//A/Cocoa ( 1.0.0, 12.0.0) /usr/lib/libgcc _s.1.dylib( 1.0.0, 1.0.0) /usr/lib/libSystem.B.dylib( 1.0.0, 111.1.4) /usr/lib/libobjc.A.dylib( 1.0.0, 227.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices ( 1.0.0, 32.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ( 150.0.0, 476.18.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation ( 300.0.0, 677.24.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit ( 45.0.0, 949.46.0) /Users/keyss/Desktop/Release _2/XYZ.app/Contents/MacOS/XYZ ( i386): /System/Library/Frameworks/ Cocoa.framework//A/Cocoa ( 1.0.0, 12.0.0) /usr/lib/libgcc _s.1.dylib( 1.0.0, 1.0.0) /usr/lib/libSystem.B.dylib( 1.0.0, 111.1.4) /usr/lib/libobjc.A.dylib( 1.0.0, 227.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices ( 1.0.0, 32.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ( 150.0.0, 476.18.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation ( 300.0.0, 677.24.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit ( 45.0.0, 949.46.0) /Users/keyss/Desktop/Release _2/XYZ.app/Contents/MacOS/XYZ ( ppc7400): /System/Library/Frameworks/ Cocoa.framework//A/Cocoa ( 1.0.0, 12.0.0) /usr/lib/libgcc _s.1.dylib( 1.0.0, 1.0.0) /usr/lib/libSystem.B.dylib( 1.0.0, 111.1.4) /usr/lib/libobjc.A.dylib( 1.0.0, 227.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices ( 1.0.0, 32.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ( 150.0.0, 476.18.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation ( 300.0.0, 677.24.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit ( 45.0.0, 949.46.0)

0
source

Source: https://habr.com/ru/post/1724087/


All Articles