iOS开发:记录开发中遇到的编译或运行异常以及解决方案

1.部署到真机异常 dyld`dyld_fatal_error:

->  0x120015088 <+0>: brk    #0x3

 dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire    

Referenced from: /var/mobile/Containers/Bundle/Application/E1AC6933-4A9B-4A0B-B

解决方案:将引用的库同时引用到Embedded Binaries

 

2 undefined symbols for architecture armv7 referenced from

解决方案:在Build Phases的Link Binary With Libraries中添加丢失的库

 

3.ld: warning: directory not found for option

解决方案:删除Search Paths里的错误项/ Framework Search Paths/Library Search Paths

 

4.swift项目中:no rule to process file ‘a’ of type sourcecode.c.h for architecture arm64

解决方案:在Build Phase的Compile Sources里去除掉.h的文件

 

5.this class is not key value coding-compliant for the key xxx

出现这个错误的的原因是删除了代码的属性,没有删除视图中IBOutlet

 

6.(null): error: /Users/xxx/Documents/xxx/PhotoBrowser: No such file or directory

清除已删除的项  Build Phases > CopyBundleResources 

 

7.No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “xxx” were found.

 这个错误是unity打包出来的解决方案,试试更改Boundle identifier在重新Build 一份。

持续更新!

 

你可能感兴趣的:(iOS开发:记录开发中遇到的编译或运行异常以及解决方案)