samedi 23 janvier 2016

SQLite.swift using Xcode 7.2 and Swift 2 project builds and runs but app can't find SQLite.framework

Had this project working prior to Swift 2 and Xcode 7 using CocoaPods and more recently with Carthage. Had trouble with Carthage using Xcode 7 and Swift 2 so decide to use manual approach.

  1. Last download of SQLite.swift-master was 1/23/2016.
  2. From Xcode copied into project SQLite.xcodeproj
  3. In General: Linked Frameworks and Libraries: selected SQLite.framework Noted in Build Phases Link Binary With Libraries (1 item) shows SQLite.framework
  4. Checked file system and found: /Users/USER/dir1/dir2/Debug/SQLite.framework/Versions/A/SQLite
  5. In Xcode Build Setting Framework Search Paths set to: /Users/USER/dir1/dir2/Debug
  6. General: Identity Signing set to: None
  7. OS X version 10.11.3
  8. Xcode 7.2(7C68)
  9. This an OS X only project. It builds and runs without errors or warnings in Xcode.
  10. When executing the app located at: /Users/USER/dir1/dir2/Debug/ASC.app Detailed error message includes: Dyld Error Message: Library not loaded: @rpath/SQLite.framework/Versions/A/SQLite Referenced from: /Users/USER/*/http://ift.tt/1OFjbIq Reason: image not found

I assume @rpath was set by my Build Settings: Framework Search Paths set to: /Users/USER/dir1/dir2/Debug

If that is the case I assume some other Building Settings must be incorrectly set. Anyone have suggestions as to which settings most likely to be the problem?

Aucun commentaire:

Enregistrer un commentaire