简体   繁体   中英

Linking against older iPhone OS in Xcode 3.2.3

I installed the new GM iPhone sdk. When I try to compile against iOS 3.0, it claims that libraries are missing. What now? I think that I have the install DMG somewhere for 3.2.2, if that helps.

Always use the newest SDK available. There is little to be gained (and a lot you give up) by building against older SDKs. It limits both what APIs you can call and also prevents your code from taking advantage of the OS features on newer devices.

If you need to deploy on older OS versions, just set the Deployment Target to the earliest version you need to run on. You don't need its SDK.

Do the following

  • sudo /Developer/Library/uninstall-devtools –mode=all (This will uninstall the current XCode installation)
  • Then install first old XCode (3.2 final) in default folder (/Developer)
  • Then install the new XCode (3.2.3 GM) in other folder (/DeveloperBeta)

This way you will have both. And can launch xcode from either /Developer/Applications/Xcode.app or /DeveloperBeta/Applications/Xcode.app

3.2.3 last beta did remove all other SDK's cause to many people tried to publish Apps developed with the beta SDK, which would not be accepted by Apple. With GM it will be the same

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM