繁体   English   中英

iOS 应用程序无法在 fastlane 中构建,但可以在 Xcode 中运行

[英]iOS app fails to build in fastlane but works in Xcode

我正在构建一个 React Native 应用程序并使用 Fastlane 来管理我的签名、构建和部署。 我试图建立一个特设的包,但每次我运行使用FASTLANE建造时间gym ,我得到一个缺少的头文件的错误消息。 构建在 Xcode 中从 Product -> Build 运行良好,我可以在本地模拟器中正常运行应用程序。

我看到的错误消息来自gym AppDelegate.m:13:9: 'ReactNativeNavigation/ReactNativeNavigation.h' file not found ,我知道它与React Native Navigation setup相关联,并已按照步骤修复它。

有没有人以前见过这个错误,或者对如何获取有关 Xcode 构建工作的更多信息有任何建议? 我试过清理我的buildpodsnode_modules目录,但没有运气。 我使用的是 React Native 0.59.9 和 Xcode 11.3.1。

这是我在Fastfile

match(
  type: "adhoc",
  git_branch: "master",
  git_url: "<my cert repo>",
  app_identifier: ["<main app ID>", "<app extension ID"],
  team_id: "<my team ID>",
  readonly: true,
)
sh('yarn', 'build:ios')
gym(
  workspace: "myApp.xcworkspace",
  scheme: "myApp",
  configuration: "Beta",
  export_method: 'ad-hoc',
  output_directory: "builds",
  output_name: ipaName,
)

仅供参考,在这种情况下, yarn build:iosreact-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ios --platform ios

您不必调用 yarn build:ios。 健身房应该照顾它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM