Xcode 9.2我无法在我的设备上运行我的应用程序,我只能在模拟器上运行它,这对我的所有项目都是一样的(Objective - C / Swift) 我的一些项目使用cocoapods运行,有些没有,但也没有在设备上运行。
我尝试了一切。
• Deleted All Xcode Verisons
• Cleared Cache
• Cleared DerivedData
• Restarted my laptop
• Update OS
• Installed a fresh version of Xcode 9.2 from the app store
• Delete /Library/Preferences/com.apple.dt.Xcode.plist
• Delete ~/Library/Preferences/com.apple.dt.Xcode.plist
• Delete ~/Library/Caches/com.apple.dt.Xcode
• Delete ~/Library/Application Support/Xcode
• rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
• rm -rf ~/Library/Developer/Xcode/DerivedData
• rm -rf ~/Library/Caches/com.apple.dt.Xcode
• Reinstalling the WWDR Certificate
• Verified that the path has: @executable_path/Frameworks
• Test with Bitcode: YES and NO
• Put in "Always Trust" mode the apple certs.
• opened my project and run on device still getting the following error :
1. dyld: Library not loaded: @rpath/libswiftCore.dylib
2. Referenced from: /var/mobile/Containers/Bundle/Application/C92037D1-A936-4070-9E61-BF5DB00780D7/ProblemApp.app/ProblemApp
3. Reason: no suitable image found. Did find:
4. /private/var/mobile/Containers/Bundle/Application/C92037D1-A936-4070-9E61-BF5DB00780D7/ProblemApp.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/C92037D1-A936-4070-9E61-BF5DB00780D7/ProblemApp.app/Frameworks/libswiftCore.dylib'
我差不多花了一个星期请帮帮我。
谢谢!
Shiv Sharma
答案 0 :(得分:0)
由于您有混合语言项目,因此可能与this有关。
尝试将嵌入式内容包含Swift代码设置为YES
答案 1 :(得分:0)
答案 2 :(得分:0)
检查您添加到应用程序的所有框架。可能需要将其中一个添加到主目标的General页面上的'Enbedded Binaries'部分。例如,Zip.Framework。