簡體   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