偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Xcode編譯錯誤和警告匯總

移動開發(fā) iOS
你還在為Xcode報錯或警告時手足無措,摸不著頭腦么?看完本篇文章一定會對你有一些幫助,本文寫出了幾種常見的Xcode編譯錯誤和警告匯總。

 

1、error: macro names must be identifiers YourProject_prefix.pch

原因: 因為你弄臟了預處理器宏,在它處于<Multiple Values>的時候修改了它

解決方法: Configiration選擇All Configirations,清空它 然后分別重新定義你的Debug,Release,Distributin預處理器宏吧

2、warning: no rule to process file '$(PROJECT_DIR)/LoadingView.h' of type sourcecode.c.h for architecture armv6

原因: Target里Compile Sources里含有頭文件 了,那里面不需要頭文件

解決方法: 從Target里Compile Sources里刪除頭文件

3、Command /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng failed with exit code 1

原因: png圖像文件拷貝失敗,看看信息上面提示Can't find哪個文件,一般都是從文件系統(tǒng)里刪除文件而沒有通過Xcode刪除造成的,Xcode的項目配置文件依然紀錄著這個文件的引用

解決辦法: 給文件系統(tǒng)里增加相應的文件,或者從Xcode的Groups & Files刪除它,或者從Target的Copy Bundle Resources里刪除它

4、Code Sign error: The identity 'iPhone Developer: Your Name' doesn't match any valid certificate/private key pair in the default keychain

原因: 簽名錯誤

解決辦法: Target -> Get Info -> Build -> Code Signing -> 修改簽名

記得左上角的Configuration類型要跟當前Build類型對應(Debug, Release, Distribution),否則改了也白改

5、could not create bundle folder for versioned model *.moda(好像是這個后綴名的這個文件)

原因:編譯一次會產(chǎn)生一個新的

解決辦法:應該把編譯產(chǎn)生出來的moda文件都刪了,然后clean下工程,重新build即可

6、error:There are no valid certificate/private key pairs in the default keychain

7、error:Cannot assign to 'self' outside of a method in the init family

原因:只能在init方法中給self賦值,Xcode判斷是否為init方法規(guī)則:方法返回id,并且名字以init     +大寫字母開頭+其他  為準則。例如:- (id) initWithXXX;

出錯代碼:- (id) Myinit{

  self = [super init];

  ……

}

解決方法:- (id) initWithMy

{

  self = [super init];

}

 

責任編輯:閆佳明 來源: sina
相關推薦

2010-09-17 08:40:49

JAVA編譯錯誤

2011-07-04 10:56:10

Qt 移植 編譯

2014-08-05 10:51:09

Xcode警告Objective-C

2013-04-03 13:43:22

iOS開發(fā)Xcode屏蔽源文件編

2025-04-02 07:59:15

2009-04-03 14:50:01

微軟Windows 7錯誤

2011-07-20 16:43:33

iPhone Bug Xcode

2021-09-06 11:26:23

Linux 5.15內(nèi)核編譯器

2011-08-01 10:41:59

Xcode 條件編譯

2013-07-04 15:05:14

Android

2012-03-26 14:25:34

C++

2011-07-25 16:03:47

XCode 編譯

2022-04-15 19:28:31

漏洞網(wǎng)絡攻擊Windows

2010-07-29 14:18:57

Flex編譯器參數(shù)

2011-08-01 09:34:32

Xcode Xcode 4 編譯器

2009-11-30 17:16:13

openSUSE 11

2011-07-22 18:25:20

XCode iPhone SDK

2011-07-28 14:06:52

XCode XCode 3.2

2011-08-03 14:06:30

Xcode 4 安裝

2011-07-07 09:20:30

Xcode
點贊
收藏

51CTO技術棧公眾號