构建失败 - 通过打开 .xcworkspace 文件使用 Xcode.app 构建应用程序

问题描述 投票:0回答:1

我已经修复了一些发生的错误。我现在已经让 CocoaPods 正常工作了。当我再次运行该程序时,我收到了超过 20 条构建应用程序的消息。一段时间后,我收到以下错误:

Building the app....
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening MyApp.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace MyApp.xcworkspace -configuration Debug -scheme MyApp -destination id
User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

我正在使用 Webstorm 和 Xcode(模拟器),在 Webstorm 和 Xcode 上都遇到同样的问题。

Version 14.3.1 (994)
SimulatorKit 629
CoreSimulator 920.3

我在这里遵循了很多解决方案,我确实遵循了他们所有的解决方案here。 正如标题所说,如何使用 -xcworkspace 文件构建我的应用程序?我尝试使用 .xcworkspace 文件打开应用程序,但它不起作用。我应该如何处理 .xcworkspace 文件?

xcode react-native webstorm
1个回答
0
投票

我认为这可能会派上用场。看看这个帖子,它描述了你遇到的同样的问题。

来自该线程的回答

  1. 奔跑
    cd ios
  2. 奔跑
    pod install
  3. cd ..
  4. 删除构建文件夹
  5. 奔跑
    react-native run-ios

如果错误仍然存在,

    再次
  1. 删除
    build folder
  2. 在x-code中打开/ios文件夹
  3. 导航文件 -> 项目设置 -> 构建系统 -> 更改(共享 工作区设置和每用户工作区设置):构建系统 -> 遗留构建系统`
© www.soinside.com 2019 - 2024. All rights reserved.