IOS——Warning

來源:互聯網
上載者:User

處理警告:

1,Validate Project Settings(update to recommended settings)

A:

2,'xxxxxxx' is deprecated:first deprecated in ios 5.0
    A:ios系統版本不支援xxxxxxx方法

3,Incomplete implemention

       A:.m檔案未實現代理方法或.h中聲明的方法

一:

1:directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Library/Frameworks'

A: project (targets)--> Build
Settings--> Library
Search Paths--> 刪除填寫的路徑

2:property's
synthesized getter follows Cocoa naming convention for returning 'owned' objects

A:不能使用“new” "copy"開始的屬性名稱

3:char *name[3]={"a","b","c"}; Conversion from string Literal to 'char*' is deprecated

A:修改成const char *name[3]={"a","b","c"};

4:Implicit declaration of function 'sysctlbyname' is invalid in C99

A:project (targets)--> Build
Settings-->C Language Dialect--->GNU89[-std=gnu89]

5  :  warning:no rule to process file "xxxxxxxxx" of type sourcecode.c.h for architecture i386  

A: project (targets)-->Build Phases-->Compile Sources--把
.h 檔案刪掉

6 :RegexKitLite.m警告

 [[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:descriptionString];

A :  [[NSAssertionHandler
currentHandler]
handleFailureInFunction:functionString
file:fileString
lineNumber NSInteger)[lineNumber
longValue]
description:@"%@",descriptionString];

7 : warning: unexpected dylib (.........) on link line

A: project (targets)-->Build Phases-->Link Binary
With Libraries--把警告的類庫刪掉

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.