我是新手。我已经创建了一个小型flutter应用程序,我想在我的真实设备上对其进行测试,但无法生成ios ipa文件进行测试。请如果有人可以帮助我解决这个问题,那对我很好。 我得到这个错误。 :
*iMac:test_app snehal$ flutter build ios
Building com.org.testApp for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 5GC7G69Y22
Starting Xcode build...
Xcode build done. 5.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode的输出:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === ld: library not found for -lPods-Runner clang: error: linker command failed with exit code 1 (use -v to see invocation) Encountered error while building for device.*
答案 0 :(得分:1)
在新项目中,必须在iOS部分中调整一些参数(例如签名),并且只能在Xcode中进行操作。
因此,尝试使用Xcode打开iOS项目并尝试从那里构建它。您会在那里看到更好的警告和错误消息,特别是有关签名的消息。
您可以打开Xcode并找到您的项目ios
文件夹,或者:
cd yourproject/ios
open -a Xcode .
然后在菜单中选择Product > Run
。