Xcode will run app on simulator but not on device

前端 未结 16 2036
予麋鹿
予麋鹿 2020-12-13 05:57

I receive the following error when trying to run the app on my device.

error: failed to launch \'/Users/michael/Library/Developer/Xcode/DerivedData/Build/Pro         


        
相关标签:
16条回答
  • 2020-12-13 06:38

    This error will manifest whenever the device capabilities described in the Info.plist do not match those of the device.

    In my case, I was requesting GPS support and location-services support and trying to test on an iPod touch.

    0 讨论(0)
  • 2020-12-13 06:41

    With Mountain Lion and the latest version of Xcode (4.4.4F250), none of the suggestions in this thread worked directly (clean, clean project, remove derived data folder, etc). This sequence did. From DhilipSiva:

    1. Disconnect your device
    2. Delete the app from your device
    3. Quit Xcode (Don't just simply close the window, quit it)
    4. Delete derived data folder rm -fr ~/Library/Developer/Xcode/DerivedData (console)
    5. Start Xcode,connect device & run the project
    0 讨论(0)
  • Removed armv6 support and it started working again

    0 讨论(0)
  • I get the similar question and has searched via the internet the whole day without solution yet...

    Xcode 12, iOS 14.

    I'm using a cocoaPods call GCDWebServer, which will open a build-in http service in iOS. Now it works fine in simulator and I could open a home page of it in my Mac's browser. But I cannot open the home page if running it with real iPhone. The browser said "Cannot connect to server"

    And in console, everything is same without any errors provided for me. Thus, how could I debug this?

    [DEBUG] Did open IPv4 listening socket 3
    [DEBUG] Did open IPv6 listening socket 4
    [INFO] GCDWebUploader started on port 80 and reachable at http://192.168.1.3/
    
    0 讨论(0)
提交回复
热议问题