Flutter踩坑之The ‘Pods-Runner’ target has transitive dependencies that include statically linked
运行Flutter项目到IOS模拟器报错如下:
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/ios/Pods/LuakitPod/lib/libLuakit.a and /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/ios/Pods/curl/lib/libcurl.a)
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`
解决办法:
打开iOS目录下的Podfile,删除掉use_frameworks!
重新build即可。
版权声明:本文为jwg1988原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。