代码之家  ›  专栏  ›  技术社区  ›  Muruganandham K

React本机iOS构建失败

  •  1
  • Muruganandham K  · 技术社区  · 6 年前

    React本机iOS生成失败,错误如下。

    GB-MAC-01s-MacBook-Pro:rrtest muruganandham.kuppan$ react-native run-ios
    Found Xcode project rrtest.xcodeproj
    Building using "xcodebuild -project rrtest.xcodeproj -configuration Debug -scheme rrtest -destination id=E7283C81-5F0D-4732-BF8B-19DB3C904DA2 -derivedDataPath build"
    Ignoring unf_ext-0.0.7.5 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.5
    ▸ Running script 'Start Packager'
    ** BUILD FAILED **
    
    
    Installing build/Build/Products/Debug-iphonesimulator/rrtest.app
    An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
    Failed to install the requested application
    The bundle identifier of the application could not be determined.
    Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    

    enter image description here

    我尝试过一些解决办法,但没有运气。

    编辑:附加信息 enter image description here

    我已经将react本机端口更改为8088,并在项目中对其进行了修改。

    1 回复  |  直到 6 年前
        1
  •  1
  •   Muruganandham K    6 年前

    我是如何解决这个问题的?

    使进程在端口8081中运行

    sudo lsof -i :8081
    

    enter image description here

    然后杀了它。

    sudo kill -9 336
    

    *336是PID(进程ID)