记一次iOS上踩到的坑,替换修复bug后的sdk后无法编译通过,最后发现是没有使用git lfs pull的锅。
1 | Undefined symbols for architecture arm64: |
1 | ld: warning: ignoring file /Volumes/Data/c1/ios/ios_xmjz/HLSDK/AppsFlyerLib.framework/AppsFlyerLib, building for iOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 ) |
通过对比md5发现,文件发生了变化,替换正常文件即可!
一般情况是使用了git lfs,但拉取时没有使用git lfs pull。
1 | # 报错的库 md5 |