簡體   English   中英

使用 fastlane 匹配方法在本地 iOS 設備上運行 react-native 應用程序

[英]Running react-native app on local iOS device with fastlane match method

我正在使用 fastlane 將我的 react-native 應用程序的 beta 版本部署到 TestFlight。 我遵循了一個教程,該教程建議在 Xcode 中禁用Automatic Signing並使用 fastlane match方法:它運行良好。 快車道教程

我現在想做的是在我自己的本地設備上調試我的應用程序
我嘗試從 Xcode 執行此操作,但出現此錯誤: 代碼錯誤

我還安裝了ios-deploy並嘗試了react-native run-ios --device命令,它沒有給我任何錯誤,但該應用程序沒有出現在我的設備上

如果您將此方法添加到您的 fastfile 中,您可以注冊新設備:

desc "Register new devices"
lane :register do
    device_name = prompt(text: "Enter the device name: ")
    device_udid = prompt(text: "Enter the device UDID: ")
    device_hash = {}
    device_hash[device_name] = device_udid
    register_devices(devices: device_hash)
    match(force: true)
  end

然后在控制台中運行fastlane register並添加您的姓名(無論您想要什么)和手機的 UDID。 那應該注冊您的設備並讓您構建它。 希望有幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM