xcode工程编译错误:一般错误总结

1.Apple LLVM 8.0 Error Group /’all-product-headers.yaml’ not found

最近升级了xcode打包后出现了个BUG,记录解决的方法。
现象:报错误信息:“......‘all-product-headers.yaml‘ not found"
原因:新增加了第三方库

解决: 
1.检查工程-Target-Build Settings 设置Defines Module的值是否为YES 
“Defines Module = YES”  
2.工程-Target-Build Settings - Other Linker Flags  
将pod里面涉及到的第三方框架都加上 “AFNetworing” -framework 
例如: 

2.dyld: Library not loaded

错误信息:dyld: Library not loaded: /System/Library/Frameworks/UserNotificationsUI.framework/UserNotificationsUI
 Referenced from: /var/containers/Bundle/Application/82256E34-03A8-47F7-9C74-3EFB5D2D94A7/***

解决:在低版本的系统中不支持高版本的framework 
arget下的Build Phases标签里,  
找到Link Binary With Libraries,  
在里面找到UserNotifications.framework,  
把status由Required 修改成Optional 

3.Domain=NSCocoaErrorDomain Code=3000

错误信息:Get deviceToken failed, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid ‘aps-environment‘
 entitlement string found for application" UserInfo={NSLocalizedDescription=no valid
 ‘aps-environment‘ entitlement string found for application}

解决:打开Push Notifications 为ON 

时间: 2024-10-07 05:27:02

xcode工程编译错误:一般错误总结的相关文章

xcode工程编译错误:No architectures to compile for

问题 开发环境:xcode6,iPhone6模拟器 xcode工程编译错误:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). 原因 导致这个错误的原因主要是CPU的编译架构引起的,Build Active Architecture Only属性设置为了YES(只编译当前模拟器指令集),当出现不兼容设备时就会出现错误. 解决 在工程Build Settings,

Xcode工程编译错误:“Cannot assign to 'self' outside of a method in the init family”

#import <Foundation/Foundation.h> @interface EOCRectangle : NSObject<NSCoding> @property (nonatomic , readonly , assign) float width; @property (nonatomic , readonly , assign) float height; -(id)initWithWidth:(float) width andHeight:(float) he

Unity打包xcode工程编译错误整理

Unity打包xcode工程二次开发遇到的问题及解决办法 1.library not found for -liPhone-lib 这个是libary路径的问题,打包的时候自行为路径加了引号"$(SRCROOT)/Libraries" 解决办法,将libary search path 下的路径引号去掉$(SRCROOT)/Libraries 2.openGL引用的错误,发送在xcode6,xcode对类库进行了升级造成openGLS改名了 解决办法,把原来的替换掉 #import &l

xcode工程编译错误:missing required architecture i386 解决方法

可能原因一:项目内保存了.framework文件,在复制分发到不同计算机的时候可能会引发该错误 解决方法一:来到Targets->Build Settings->Framework Search Paths,将其内容删除.让xcode不管项目目录下的.framework文件,而是去包含本机的.当然你也可以手动删除它们. 解决方法二:这个是在stack overflow上看到的: I had this same problem, and the solution turned out to be

xcode工程编译错误:error: Couldn’t materialize

错误信息: error: Couldn't materialize: couldn't get the value of variable amount: variable not available error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression. 解决:Release改为Debug

xcode工程编译错误:&quot;An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it&quot;

An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to

xcode工程编译错误之iOS解决CUICatalog: Invalid asset name supplied问题

[问题分析]: 这个问题其实是老问题,产生原因就是因为在使用的时候 [UIImage imageNamed:]时,图片不存在或者传入的图片名为nil. [解决方法]: 添加一个系统断点,来判断如果图片名字为nil或者@""的时候,来拦截掉.[操作截图] 原文地址:https://www.cnblogs.com/lxlx1798/p/10326627.html

编译依赖于React Native0.46.4的React Native IOS工程时,出现错误“fatal error: &#39;React/RCTEventEmitter.h&#39; file not found”

我的环境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release-915-b5 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6 Xcode8.3.3(8E3004b) 网上搜索,可以解决我的问题的网址:https://stackoverflow.com/questions/41663002

xcode ___gxx_personality_v0&quot; 编译错误

xcode ___gxx_personality_v0" 编译错误 Undefined symbols for architecture i386: "___gxx_personality_v0", referenced from: ... 在XCODE工程 添加  libstdc++.dylib 即可