CocoaPods问题集合
旺仔大牛
专注Android、Flutter开发,偶尔涉猎web、后端
展开
-
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
老项目在最新的Xcode14.3运行报以下错误。根据网上的资料,这是由于 Xcode14只支持构建ios11.0及以上的版本。libarclite对于老的版本才需要,在IOS11以上被废弃了。所以我们要确保所有的库的构建目标都要在11.0以上。原创 2023-06-05 12:11:08 · 1228 阅读 · 0 评论 -
解決pod install报错:unable to access: LibreSSL SSL_read: error:Operation timed out, errno 60
pod install下载失败时,如何解决.原创 2023-06-05 09:59:27 · 1031 阅读 · 0 评论 -
解决Cocoapods重装或更新后版本不生效的问题
有时候在运行时,会出现以下提示使用重新安装后,发现版本依然没改变。解决方案方法1如果使用的是安装的,后面加上参数,覆盖安装。运行也不会出现错误了。如果使用的是更新的cocoapods,需要使用以下命令覆盖。......原创 2022-07-08 03:48:22 · 3163 阅读 · 0 评论 -
解决pod install报错:ffi is an incompatible architecture
最近公司换了M1的macbookpro,安装完IOS环境后,在项目中运行出现以后错误解决方案看错误提示,因为Cocoapod依赖了包,包的架构不兼容导致的。因为从m1开始,macbook采用的是ARM架构的cpu,和以前的x86架构的软件不兼容,我们只需要将ffi转换为兼容arm架构的包即可。运行以下2条命令......原创 2022-07-06 11:35:43 · 1658 阅读 · 0 评论 -
CocoaPods安装失败解决方法
出现场景最新换了个512的大硬盘,重装了MacOS 10.15,安装Cocoapods时,出现以下错误Building native extensions. This could take a while...ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.原创 2021-07-07 01:03:10 · 4035 阅读 · 0 评论 -
解决Android Studio中Flutter点击run出现CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS.原创 2022-06-02 03:07:51 · 5742 阅读 · 3 评论 -
解决CocoaPods installed but it is not working
You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.原创 2022-06-02 02:48:25 · 4370 阅读 · 0 评论 -
解决Invalid `Podfile` file: no implicit conversion of nil into String
Upgrading contents.xcworkspacedataRunning pod install...CocoaPods' output:↳ [!] Invalid `Podfile` file: no implicit conversion of nil into String. # from /Users/ado/my/work/flutter/testdemo4/ios/Podfile:58 # ---------------------------原创 2021-07-19 01:33:50 · 2623 阅读 · 1 评论 -
ios-解决报错-CocoaPods could not find compatible versions for pod “xxx“
出现场景使用某个三方库时,跑在IOS上报错。最近在做蓝牙相关的,需要用到蓝牙库,就找到了flutter_reactive_ble这个库。最后运行在ios上时,直接报错。[!] CocoaPods could not find compatible versions for pod "flutter_reactive_ble": In Podfile: purchases_flutter (from `.symlinks/plugins/flutter_reactive_bl原创 2021-06-28 10:06:32 · 14070 阅读 · 2 评论