嗨。我導入了reachability.h文件和reachability.m文件,以檢查我的應用程序中的Internet連接,但出現ARC錯誤。iOS中的可達性類ARC錯誤
我必須試着申請轉換成ARC,但它仍然顯示如下相同的錯誤:
compile Reachability.m and compile Reachability m files
implicit conversion of objective c pointer type 'Reachability *' to Cpointer type void * requires a bridged cast
ARC forbids explicit message send of 'dealloc'
ARC forbids explicit message send of 'autorelease'
ARC forbids explicit message send of 'autorelease'
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
Cast of C pointer type 'void*' to Objective - C pointer type 'Rachability*' requires a bridged cast
release is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'release
我不知道如何解決這個問題。請我需要幫助。
感謝
http://stackoverflow.com/questions/12620271/reachability-h-reachability-m-gives-an-apple-mach-o-linker-error-同時添加 – 2014-01-28 09:08:59
刪除屬於內存版本的代碼行。 –
http://stackoverflow.com/a/11945045/1142743 – Vinodh