跑flutter工程的坑

  • 下载过来,一定要把pod和workspace删掉重新安装,否则会出现奇奇怪怪的问题,比如目标系统不对应,不适配arm64架构等:

The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0 |

undefined symbols for architecture arm |

2020-11安装cocoapods问题

今天安装pods发生无法下载问题,

1
Unable to download data from XXX

切换了镜像源解决

  • 查看镜像源
1
gem sources -l
  • 删除淘宝镜像源 -r remove
1
sudo gem sources -r https://ruby.taobao.org/
  • 添加新的镜像源 -a add
1
sudo gem sources -a https://rubygems.org
  • 安装

    1
    sudo gem install cocoapods
  • 成功
    Successfully installed cocoapods-1.10.0
    Parsing documentation for cocoapods-1.10.0
    Done installing documentation for cocoapods after 2 seconds

参考:https://blog.csdn.net/li_ph/article/details/43852845

static-lib

static lib

a unit of code linked at compile time,which does not change


Dynamic lib

a unit of code and/or assets linked at runtime that may change
only Apple is allowed to create dynamic libraries for iOS


Software Framework

a compiled set of code that accomplished a task,hence,you can actually have a static framework or a dynamic framework,which are typically just the compiled versions of the above.

source:https://stackoverflow.com/questions/15331056/library-static-dynamic-or-framework-project-inside-another-project