gpt4 book ai didi

ios - 使用 faSTLane 匹配方法在本地 iOS 设备上运行 react-native 应用程序

转载 作者:行者123 更新时间:2023-11-28 20:58:43 25 4
gpt4 key购买 nike

我正在使用 faSTLane 将我的 react-native 应用程序的测试版部署到 TestFlight。我遵循了一个教程,该教程建议在 Xcode 中禁用 Automatic Signing 并使用 faSTLane match 方法:它工作得很好。 ( Fastlane tutorial )

我现在想做的是在我自己的本地设备上调试我的应用:
我尝试从 Xcode 执行此操作,但出现此错误: xcode error

我还安装了 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。那应该注册您的设备并让您构建它。希望对您有所帮助!

关于ios - 使用 faSTLane 匹配方法在本地 iOS 设备上运行 react-native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51004630/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com