同样的程序,都能在XCODE模拟器中正常运行,但是OC的能在手机上调试,Swift的不行
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/0A314D2E-9331-497D-8458-369747A0A9BB/Orientation.app/Orientation
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/0A314D2E-9331-497D-8458-369747A0A9BB/Orientation.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/0A314D2E-9331-497D-8458-369747A0A9BB/Orientation.app/Frameworks/libswiftCore.dylib'
是证书问题,前几天刚遇到,去钥匙串删除所有iOS Developer证书,重新获取一下