Should I care about Compiler when I have created Library/Framework of my Project and running on Different Compiler?

StackOverflow https://stackoverflow.com/questions/16526950

문제

I have created iOS Library/Framework (static) of my project using LLVM GCC compiler with NON-ARC build. Now I want to use this Library in my newer projects with Apple LLVM Compiler with ARC compliance.

Should I worry about converting my Library project in Apple LLVM Compiler with ARC? What/Where will be the impact areas I should concern?

My primary analysis says that i am able to use my LLVM GCC Library in Apple LLVM Compiler. But not satisfied with result.

Please suggest your analysis and conclusions. Thanks

EDIT:

Note that class_copyPropertyList method's behavior is got changed with Apple LLVM Compiler. Prior in LLVM GCC Compiler this method returns all the List of variables in Reverse order declared in interface. But from Apple LLVM Compiler this method returns in same Sequence as declared in Interface.

IMPORTANT: Though this behavior is changed with Apple LLVM Compiler, this behavior is not affected in Library. But when I use to run the sample project including Library project (Not library but its project) then This method gives me WRONG result.

도움이 되었습니까?

해결책

To answer your question, you don't need to upgrade...yet. If you have the time I would go ahead and make your library ARC compliant.

Here's what could happen: Your code will not compile or your code could receive a bunch of warnings. You can put exceptions in your build settings to mark your library non ARC compliant. Which should cause any build/run time issues to go away.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top