osx - Xcode-beta and updated/new frameworks -
i run xcode-beta 7 on 10.10.3. has new gameplaykit framework , updated scenekit framework. can use them (or new features) in current project, or must have 10.11 beta?
you can write code on os x 10.10.3 using xcode 7β. can compile , export app since xcode can build against included 10.11 sdks.
you can not, however, run app on mac under 10.10.3. app run need update 10.11β.
make sure
- always use the same beta version xcode , os x
- always use latest beta
if try run app links against sdk not available app crash before started error similar to
dyld: library not loaded: /system/library/frameworks/metal.framework/versions/a/metal
that because app configured tell dyld search in system's frameworks directory framework , directory not contain framework on version of os x.
for unknown symbols in existing (updated) frameworks there 2 options depending on language:
swift: swift 2.0 compiler automatically warns api want use not available , makes guard statement so:
if #available(osx 10.11, *) { let namecomponents = nspersonnamecomponents() } else { // fallback on earlier versions } objc: use this answer.
Comments
Post a Comment