新的 expo init 裸项目不是为 iOS 构建的

时间:2021-02-19 11:40:45

标签: ios xcode react-native expo expo-cli

从使用 expo init 应用开始,并使用了最低限度的打字稿模板,该应用不是使用 react-native run-ios 构建的,但如果在 Expo-go 应用中使用 expo start 则可以工作。

这是错误代码:

info Installing "/Users/mac/Library/Developer/Xcode/DerivedData/myproject-ccluoxcwmsrveqavqitrwaszccss/Build/Products/Debug-iphonesimulator/myproject"
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
        Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory
info Launching "org.name.myproject"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "org.name.myproject" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "org.name. myproject" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
        The operation couldn’t be completed. Application "org.name.myproject" is unknown to FrontBoard.
        Application "org.name.myproject" is unknown to FrontBoard.

在 Xcode 中启动应用程序时,构建成功,但应用程序未在模拟器上加载,我收到此错误消息:

enter image description here

配置:

Expo CLI 4.1.6 environment info:
    System:
      OS: macOS 11.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
      Yarn: 1.22.0 - /usr/local/bin/yarn
      npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.9.3 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
      Android SDK:
        API Levels: 23, 24, 27, 28, 29
        Build Tools: 23.0.1, 27.0.3, 28.0.2, 28.0.3, 29.0.2
        System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
    IDEs:
      Xcode: 11.7/11E801a - /usr/bin/xcodebuild
    npmPackages:
      expo: ~40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: ~0.63.4 => 0.63.4 
      react-native-web: ~0.13.12 => 0.13.18 
    Expo Workflow: bare

0 个答案:

没有答案