由于“文件格式错误”,iOS5 将项目转换为 ARC 失败如何修复?
我有一个包含 49 个源文件的项目,我正在尝试使用编辑>重构>转换为 arc 将其转换为 ARC。我点击“预检查”,没有错误,目标就编译了。
Xcode 会执行“生成预览”,编译所有 49 个源文件,然后在审查更改列表中显示 1(或 2)个文件。这是一个 .h/.m 文件。那看起来是正确的。我看到该列表上没有其他文件。
当我单击“保存”时,窗口关闭,项目尝试构建,但失败并出现错误:
Error in format of file: ...-arc.migrate/remap
这些错误出现在所有文件中
如果我尝试构建项目,我收到约 350 个错误,提示“ARC 中不允许保留、释放” ...请帮忙!
如何将整个项目一次性转换为 ARC?
更新:在多次清理项目并将部署目标更改为 iPhone 5 模拟器后,我能够在“保存更改”列表中看到所有文件。
I got a project with 49 source files that I'm trying to convert to ARC using edit>refactor>convert to arc. I click "pre-check", there are no errors, and the target compiles.
Xcode goes through "generating preview", compiles all 49 source files, then shows me 1 (or 2) file in the review changes list. This is a .h/.m file. That one appears correct. There are no other files on that list and I see.
When I click save, the window closes, and the project tries to build, but fails with error:
Error in format of file: ...-arc.migrate/remap
These errors appearing in all files
If I try to build the project, i get ~350 errors saying "retain, release not allowed in ARC"... Please help!
How do I convert the entire project to ARC at once?
Update: After cleaning the project a bunch of times and changing the deployment target to iPhone 5 simulator, I was able to see all files in the "save changes" list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一种方法来回答这个问题,为了清楚起见,我将其发布在这里:
多次清理项目并将部署目标更改为 iPhone 5 模拟器后,我能够看到“保存更改”列表中的所有文件。
I found a way to answer this question and am posting it here for clarity:
After cleaning the project a bunch of times and changing the deployment target to iPhone 5 simulator, I was able to see all files in the "save changes" list.