我是新来的扑扑。我已经创建了一个小型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.*
=== 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.*
在新项目中,必须在iOS部分中调整一些参数,例如签名,并且您只能在Xcode中进行此操作。
因此,尝试使用Xcode打开iOS项目并尝试从那里构建它。您会在那里看到更好的警告和错误消息,特别是有关签名的消息。
您可以打开Xcode并找到您的项目ios文件夹,或者:
ios
cd yourproject/ios open -a Xcode .
然后Product > Run在菜单中选择。
Product > Run