IOS开发错误收集

来源:互联网 发布:log4js json格式 编辑:程序博客网 时间:2024/05/12 08:06

1. Could not change executable permissions on the application.

because i already have the same app using the same bundle identifier installed on the phone.

what you need to dois to delete all those apps on your iphone which is using the same bundle identifier name.

 

2.symbol(s) not found forarchitecture i386. 

iOS 编译时有时候会出现编译不过的情况  错误描述大致为:symbol(s) not found forarchitecture i386 

一般情况下是由于库文件引用出的问题,检查你需要使用的库,是否已经添加到工程里。

xcode4.0以上添加方法:选择工程的  TARGETS--->Build Phases--->Link Binary With Libraries点击“+”图标添加对应的库。

 

3.'xxx'has been modified since the precompiled header was built.

deleting the DerivedData folder formy app at:

~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook}


4. Xcode 4.5 无法生成IOS APP ARCHIVE的解决方法

存档编译的App,每次都生成一个 名字叫:Generic Xcode Archive 的玩意.

如果工程引用了外部类库, 默认生成的archive Generic Xcode Archive格式的 无法发布和生成ipa文件。

网上的解决办法是:将其他静态库中的 Build Settings 中的 Skip install  更改为 YES,  主工程的 Skip install 依旧保持 NO.就解决问题了,

但纠结的是,我这样设置以后,依旧编译错误,原来还需要将静态库中的 所有头文件,归置到Project之中. 再次编译,成功!

如图:



5. "_OBJC_CLASS_$_SKPSMTPMessage", referenced from:

  objc-class-refinConfirmController.o


经常出现库的问题,尤其是挪用别人的东西的时候。明明知道是库的问题,可有的时候加上frame库和静态库还是不行,又找了个解决方案 在工程的Build Phases 下的 Compile Sources里面加入报错的.m文件


就可以了~~  

解决:"_iconv_open", referenced from: 

标签: libiconv.dylib _iconv_open referencedfrom it

关于:_iconv_open", referenced from:的解决方案

添加动态库 libiconv.dylib.

6. 空对象调试,在product->scheme->scheme edit中加入:

7. "error: failed to attach to process ID 0"问题解决启动simulator没多久,感觉不到simulator自身加载启动完成就报这个错。在simulator menubar上,ios模拟器-->还原内容和设置,8.code signing is required for product type 'Application' in SDK 'iOS 6.0'解决之道:PROJECT --> Build Settings --> Code Signing --> Code Signing Identity设置为 iPhone DeveloperTARGETS --> Build Settings --> Code Signing --> Code Signing Identity设置为 iPhone Developer

  1. no provisioning profile at path '/Users/user/Library/MobileDevice/Provisioning Profiles/XXXXX.XXX
  2.  当报这种错误时,工程证书不正确,修改build setting下 的Provisioning Profile为正确的的项目证书即可
  3. malformed or corrupted AST file: iosXXX,类似的错误时,时xcode编译器的问题,清理下/Library/Developer/Xcode/DerivedData下的数据
  4. 即可。


原创粉丝点击