简体   繁体   中英

iOS App Won't start on Testflight Ad Hoc Distribution

I'm developing an application that works perfectly well on my phone when I run it through Xcode. But when I distribute a beta through TestFlight, none of the users can run it - NOTE : They can install the app on their phones without any problem. The application just closes before it launches and there are no crash logs on TestFlight.

I can connect any of my testers' phones to my computer and run the app on them (using Xcode) just fine. I thought maybe this is a problem with provisioning profiles, but on my phone, I can delete the relevant profile from Settings app then install the app from the TestFlight link, and it still runs fine.

From things I've read on Stack Overflow, this must be because of some difference in "Release" and "debug" settings of the app, but I'm totally lost as to how to debug it. I can't run the app in release mode while it's connected to Xcode, and I can't debug when it's not connected to Xcode.

Any suggestions?

Update - Resolved

I did end up "solving" this problem. SO user Cliff Ribaudo had the same problem (apparently he was the only other person) and he posted about it here and finally found the solution here . The solution turned out to be setting two linker flags: STRIP LINKED PRODUCT = NO & STRIP STYLE = DEBUGGING SYMBOLS . I have no idea why this fixed it, and I don't know why it was broken in the first place. But we haven't had this crash since I made these changes.

Thanks, Kerni I was able to debug the issue by tracking down the crash report via iPhone Configuration Utility . I Selected the Devices I was debugging and opened the Console Tab on the iPhone Configuration Utility hitting clear and check it out. I Saved the log after getting the app to crash again and found that I had been using In-App Audio when I didn't add it to the App ID when I was creating my provisioning profile. This was the only issue. After I went threw all of the steps again the IPA Uploaded just fine. The app installed like one would imagine!

To Put it short :

  1. Debugged with iPhone Configuration Utility (issue was In-App Audio wasn't selected on the App ID Generation)

  2. Generated a New App ID and Provisioning Profile

  3. Created and uploaded a new IPA.

<<<< Console Debugging here >>>>: http://help.testflightapp.com/customer/portal/articles/1305502-my-apps-are-failing-to-install-what-do-i-do-

I had exactly same problem and I figured it out. Please see my answer here.

testflight application closes on start

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