简体   繁体   English

Swift应用程序在模拟器上打开但不在设备上打开

[英]Swift App Opens on Simulator But Not on Device

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: 我已经在我的iOS应用程序上工作了一段时间,它在模拟器上构建并运行良好,但是当我尝试在我的设备上运行它时,会发生以下几件事:

  • The app launch screen appears 出现应用启动屏幕
  • The app crashes and my Xcode output is as follows: 应用程序崩溃,我的Xcode输出如下:

     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 

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. 所以我不浪费你的时间,我想警告你,我已经尝试清理和构建,撤销和更新证书,删除所有断点,并重新启动Xcode和我的iPhone。

Any ideas on how to make my app run on my device? 有关如何在我的设备上运行我的应用程序的任何想法? Thanks!!! 谢谢!!!

My project has Cocapods and I'm using multiple schemes. 我的项目有Cocapods,我正在使用多种方案。 Running pod update fixed something wrong that happened during a merge and now it runs fine. 运行pod更新修复了在合并期间发生的错误,现在运行正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM