问题描述
我一直在使用我的iOS应用程序一段时间,它在模拟器上构建和运行良好,但当我尝试在我的设备上运行它时,会发生以下几种情况:
I've been working on my iOS app for a while, and it builds and runs fine on the simulator, but when I try to run it on my device, a few things happen:
- 应用程式启动画面出现
-
应用程式当机,我的Xcode输出如下:
- The app launch screen appears
The app crashes and my Xcode output is as follows:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from:/private/var/mobile/Containers/Bundle/Application/18932CDB-57DA-4A87-B154-45B9F3CD01D0/Up & Down - Minimalistic, Beautiful Counter.app/Up & Down - Minimalistic, Beautiful Counter
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/18932CDB-57DA-4A87-B154-45B9F3CD01D0/Up & Down - Minimalistic, Beautiful Counter.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x100110000, size=0x0015C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/18932CDB-57DA-4A87-B154-45B9F3CD01D0/Up & Down - Minimalistic, Beautiful Counter.app/Frameworks/libswiftCore.dylib
(lldb)
还会出现以下消息,并出现一些其他类似的错误:
The following message also appears, with a few other similar errors:
dyld`dyld_fatal_error: Thread 1: EXC_BREAKPOINT (code=1,subcode=0x1200f5088)
-> 0x1200f5088 <+0>: brk #0x3
所以我不浪费你的时间,我想警告你,我已经尝试清理和建立,撤销和更新证书,删除所有断点,并重新启动Xcode和我的iPhone。
So I don't waste your time, I would like to warn you that I have tried to clean and build, revoke and renew certificates, delete all breakpoints, and restart both Xcode and my iPhone.
有关如何让我的应用在我的设备上运行的任何想法吗?谢谢!!!
Any ideas on how to make my app run on my device? Thanks!!!
推荐答案
我的项目有Cocapods,我使用多个方案。运行pod更新修复了合并期间发生的错误,现在运行正常。
My project has Cocapods and I'm using multiple schemes. Running pod update fixed something wrong that happened during a merge and now it runs fine.
这篇关于Swift应用程序打开模拟器,但不是在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!