framework not found AppTrackingTransparency.framework
Xcode12.0以下版本会因找不到库文件而报以上错误
ld: framework not found AppTrackingTransparency
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法
-
升级Xcode至最新版本
-
下载 AppTrackingTransparency.framework这个库文件,添加到Xcode软件包中
链接:https://pan.baidu.com/s/1oAxvsAEOrjLW1q7PPT_f8A 密码:wmk9
将下载好的frameowork放到指定目录下
-
真机
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AppTrackingTransparency.framework
-
模拟器
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/AppTrackingTransparency.framework
-
-
如何找到指定目录
点击访达,找到应用程序,点击Xcode,右键进入包内容中