error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65

前端 未结 13 1304
礼貌的吻别
礼貌的吻别 2020-11-29 23:58

I\'ve build a react-native application and suddenly I get this error message on my terminal during run of the command react-native run-ios. The same code work fine 10 minute

相关标签:
13条回答
  • 2020-11-30 00:19

    I had the same error, but it was caused by the package manager process port being already used (port 8081).

    To fix, I just ran the react-native by specifying a different port, see below.

    react-native run-ios --port 8090

    0 讨论(0)
  • 2020-11-30 00:26

    In my case, the issue was with my Xcode build scheme. When you run react-native run-ios you may see something like,

    • info Found Xcode workspace "myproject.xcworkspace"*

    • info Building (using "xcodebuild -workspace myproject.xcworkspace -configuration Debug -scheme myproject -destination id=xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxx -derivedDataPath build/myproject")*


    In this case, there should be a scheme named myproject in your ios configurations. The way I fixed it is,

    Double clicked on myproject.xcworkspace in ios directory (to open workspace with Xcode)

    Navigate into Product > Scheme > Manage Schemes...

    Created a Scheme appropriately with name myproject (this name is case-sensitive)

    Ran react-native run-ios in project directory

    0 讨论(0)
  • 2020-11-30 00:28

    Here is the a possible solution

    The problem is found in RealmReact.xcodeproj

    0 讨论(0)
  • 2020-11-30 00:29

    cd ios && rm Podfile.lock && pod install worked for me.

    0 讨论(0)
  • 2020-11-30 00:29

    For me it caused by installing react-native-vector-icons and linking by running the react-native link react-native-vector-icons command.

    I just unlinked the react-native-vector-icons by following commands

    1. react-native unlink react-native-vector-icons
    2. cd ios
    3. pod install
    4. cd ..
    5. react-native run-ios

    As I already installed an other icon library.

    0 讨论(0)
  • 2020-11-30 00:34

    If you don't have cocoa pods installed you need to:

    sudo gem install cocoapods
    

    Then run:

    cd /ios
    pod install
    

    delete the build folder in ios folder of your react native project

    run:

    react-native run-ios
    

    if error persists:

    • delete build folder again
    • open the /ios folder in Xcode
    • navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
    0 讨论(0)
提交回复
热议问题