Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Build Succeeded but not run on iPhone/Simulator

I am facing a little strange problem with Xcode, that is when I run my app is Xcode shows Succeeded but my app does not run automatically on iPhone or Simulator. I have to manually click on app icon then it runs. I have already tried all the solutions I could find. I have tried the following points:

  1. Adding in armv6
  2. Restarting xcode
  3. Restarting device/simulator
  4. Removing device from the organizer then adding it back.
  5. Restarting Mac Book Pro.
  6. Cleaning project and rebuilding
  7. Check plist
  8. Check target
  9. Check product>edit scheme > select run option (and info tab) ==> all is fine there

Please note I am using these frameworks via pods name are:

pod 'IQKeyboardManager'
pod 'GooglePlacePicker'
pod 'Firebase/Messaging'
pod 'Google'
pod 'Google/SignIn'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'

The app does not run automatically even after Xcode show Build succeeded on simulator/iPhone.

like image 548
Ravi Avatar asked Jun 04 '17 20:06

Ravi


2 Answers

I had a very similar problem after adding Cocoapods to my project. I was also using the Swifter framework at the same time and somehow the new .xcworkspace had the wrong scheme selected.

Similar to how Ravi fixed his issue. I changed the scheme under Product > Scheme > Choose Scheme (Keyboard shortcut ^0 ) back to the original Scheme (basically the name of my project) and everything worked again.

like image 55
Marco Boerner Avatar answered Oct 05 '22 22:10

Marco Boerner


There is one more possible problem that I can think of and that is, you're using a developer account on this project that is not trusted/verified on your iphone. After running your app for once on this device. Go to Settings > General > Device Management. Then select the developer account that you have used to build this app and finally tap "trust".

like image 38
Arash Tabrizian Avatar answered Oct 06 '22 00:10

Arash Tabrizian