简体   繁体   English

Xcode 7:Clang:错误

[英]Xcode 7: Clang: error

I have added AppLovin to my app. 我已将AppLovin添加到我的应用中。 I am using Xcode 7 and have everything added fine and Xcode recognizes the AppLovin code in my viewcontroller.m file. 我正在使用Xcode 7,一切都很好,Xcode可以在我的viewcontroller.m文件中识别AppLovin代码。 I followed the steps listed here: https://www.applovin.com/integration#iosIntegration 我遵循此处列出的步骤: https : //www.applovin.com/integration#iosIntegration

However, when I run my app, I get the following error: 但是,当我运行我的应用程序时,出现以下错误:

ld: library not found for -lAppLovinSdk clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:找不到用于-lAppLovinSdk叮当声的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)

What I have tried: (1) Deleting and re-adding libAppLovinSDK.a (2) Deleting derived data and cleaning the project (3) Doubled checked to see if "AppLovinSdk.a" existed in "Target -> Build Phases -> Link With Libraries" (4) Checked to make sure libAppLovinSDK.a is in my main project folder (5) Added "AppLovinSdk" to "Library Search Paths" under Build Settings 我尝试了什么:(1)删除并重新添加libAppLovinSDK.a(2)删除派生数据并清理项目(3)进行了两次检查,以查看“目标->构建阶段->链接”中是否存在“ AppLovinSdk.a”使用库”(4)检查以确保libAppLovinSDK.a在我的主项目文件夹中(5)在“构建设置”下的“库搜索路径”中添加了“ AppLovinSdk”

Thanks for your help! 谢谢你的帮助!

If you are using Cocoapods, make sure that your Project and Pods Architecture settings matches(Build Settings -> Architectures). 如果您使用的是Cocoapods,请确保您的“项目”和“ Pods体系结构”设置匹配(“构建设置”->“体系结构”)。

Usually it's Build Active Architecture Only part. 通常,它是“ 仅构建活动架构”部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM