简体   繁体   中英

Swift project crashes on launch - works with Objective-C

When I create a new project in XCode 6 and select "Swift", it crashes whenever I try to open an Ad Hoc or In-House build.

I have no problem when I select "Objective-C" as the language, the app runs as per normal. I am using the exact same developer certificate and Provisioning Profile for both Swift and Objective-C.

Has anyone had any similar experiences? Could it perhaps be something to do with my dev environment?

I would also like to add that debugging the Swift app to the device from XCode works perfectly fine.

Another update - I have sent my project to another developer to build from their computer and it worked.

Many thanks, Jeremy

I found that re-creating my certificate has solved the problem!

It's hard to say exactly, but it seems that any developer certificates created before Xcode 6 beta was released - don't build a Swift project properly. Let me know if anyone has had a similar experience!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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