Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法运行程序 #150

Open
fengyang0329 opened this issue Mar 27, 2017 · 5 comments
Open

无法运行程序 #150

fengyang0329 opened this issue Mar 27, 2017 · 5 comments

Comments

@fengyang0329
Copy link

我下载了后,引用UMSAgent.h就报错,错误信息如下:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_UMSAgent", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我按照文档里面添加了CoreTelephony.framework、CoreGraphics.framework,而且你们的demo也是无法运行,是不是还要添加其他的库?

@likanglvz
Copy link

需要添加的依赖库有:
SystemConfiguration.framework
MobileCoreServices.framework
QuartzCore.framework
CFNetwork.framework
Security.framework
AdSupport.framework
CoreTelephony.framework
CoreGraphics.framework
UIKit.framework
Foundation.framework
libz.1.2.5.tbd
libicucore.tbd
libsqlite3.tbd
设置Other Linker Flags
Other Linker Flags 主要由于系统采用了ARC方式开发,如果应用未同样采用ARC方式,请添加如下标记:
添加 –all_load和-ObjC标记,如因-all_load添加,致其它第三方库编译报错,可尝试使用-force_load

@Flowhigh
Copy link

我下载iOS sdk后,根据官方文档访问项目后,一直在运行报错,无法运行,可以解决吗?
报错代码No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv7 armv7s)
解决了好几天根本就解决不了你们有好的办法吗

2 similar comments
@Flowhigh
Copy link

我下载iOS sdk后,根据官方文档访问项目后,一直在运行报错,无法运行,可以解决吗?
报错代码No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv7 armv7s)
解决了好几天根本就解决不了你们有好的办法吗

@Flowhigh
Copy link

我下载iOS sdk后,根据官方文档访问项目后,一直在运行报错,无法运行,可以解决吗?
报错代码No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv7 armv7s)
解决了好几天根本就解决不了你们有好的办法吗

@likanglvz
Copy link

1.您可以在工程Build Settings,设置Build Active Architecture Only属性设置为NO,并且Architectures与Valid Architectures属性分别添加ARMv7,ARMv7s,ARM64值,clear工程,重新build
2.或者对下载的代码进行重新打包,真机+模拟器的.a包。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants