dyld: Library not loaded: @rpath/libswiftCore.dylib

前端 未结 30 1756
小蘑菇
小蘑菇 2020-11-22 04:27

I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release

30条回答
  •  迷失自我
    2020-11-22 05:07

    I think it's a bug when certificates are generated directly from Xcode. To resolve (at least in Xcode 6.1 / 6A1052d):

    1. go to the Apple Developer website where certificates are managed: https://developer.apple.com/account/ios/certificate/certificateList.action
    2. select your certificate(s) (which should show "Managed by Xcode" under "Status") and "Revoke" it
    3. follow instructions here to manually generate a new certificate: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW32
    4. go to Xcode > Preferences > Accounts > [your Apple ID] > double-click your team name > hit refresh button to update certificates and provisioning profiles

提交回复
热议问题