Convert to ARC - LLVM compiler 3.0 Error

匿名 (未验证) 提交于 2019-12-03 02:26:02

问题:

I opened up an older project of mine and chose Convert to Objective-C ARC from the Edit/Refactor menu. I am getting the following error:

Apple LLVM compiler 3.0 Error  Error in format of file: /Users/myUserName/Library/Developer/Xcode/DerivedData/ProjectName-fkjvtdsoypoyrdcedtarbtypupor/Build/Intermediates/ProjectName.build/Debug-iphoneos/ProjectName.build/ProjectName-arc.migrate/remap 

Is this one of those situations where I need to manually delete some files/folders in Finder and then try it again? I just deleted everything in the "Build" folder of the project, then did Product/Clean and tried it again, but still getting the same error.

回答1:

Apparently you cannot have the target set to iOS Device when you "Convert to Objective-C ARC"

When I set the target to the simulator, I was able to convert to ARC with no errors.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!