我正在尝试在我的iPhone 4s上运行一款Swift应用程序。它在模拟器上运行良好,我的朋友也可以在他的iPhone 4s上成功运行它。我使用的是iOS 8和Xcode 6正式版本。
我已经尝试了以下:
- 重启Xcode、iPhone、电脑
- 清理并重新构建
- 吊销并创建新的证书/配置文件
- Runpath搜索路径为
$(inherited) @executable_path/Frameworks
- 嵌入内容包含Swift代码是'Yes'
- 代码签名标识是开发者
下面是完整的错误信息:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/AppName
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/AppName.app/Frameworks/libswiftCore.dylib: mmap() error 1 at
address=0x008A1000, size=0x001A4000 segment=__TEXT in Segment::map() mapping
/private/var/mobile/Containers/Bundle/Application/LONGSERIALNUMBER/APPLICATION_NAME/Frameworks/libswiftCore.dylib