颤抖的iOS构建失败(ld:未找到-lPods-Runner的库) [英] flutter iOS build failed (ld: library not found for -lPods-Runner)
问题描述
我是新手。我已经创建了一个小型flutter应用程序,我想在我的真实设备上对其进行测试,但是我无法生成ios ipa文件进行测试。如果有人可以帮助我解决这个问题,那对我很好。谢谢!!
我收到此错误。 :
I am new to flutter. I have created small flutter app and i wanna test it on my real devices but i am unable to generate ios ipa file for testing. Please if anyone could help me with this issues then it would be good for me.thanks in advance!! I getting this error . :
*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.*
推荐答案
在新项目中,有必要在iOS部分中调整一些参数(例如签名),并且只能在Xcode中进行调整。
In new projects, in the iOS part is necessary to adjust a few parameters, such as signing, and that you can only do in Xcode.
因此,尝试使用Xcode打开iOS项目并尝试从那里构建它。您会在那里看到更好的警告和错误消息,尤其是有关签名的消息。
So, try to open the iOS project with Xcode and try to build it from there. You'll see better warning and error messages there, specially regarding signing.
您可以打开Xcode并找到您的项目 ios
文件夹,或者:
You can open Xcode and locate your project ios
folder, or:
cd yourproject/ios
open -a Xcode .
然后选择产品>在菜单中运行
。
这篇关于颤抖的iOS构建失败(ld:未找到-lPods-Runner的库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!