It seems like Xcode 9 beta does not like "~ipad" in filenames for .xib files. When selecting the new build system (for a project, that is compiling successfully with the old build system), it errors out with:
看起来Xcode 9 beta不喜欢.xib文件文件名中的“~ipad”。当选择新的构建系统(对于一个正在用旧的构建系统成功编译的项目)时,它会出现以下错误:
unable to build node: '/Users/dev/Library/Developer/Xcode/DerivedData/proj-aiatvieseyfwjkfqncikqcohpdsn/Build/Products/Debug-iphoneos/proj.app/Controller~ipad.nib' (node is produced by multiple commands; e.g., 'adf8a93da84709e14beaf35ec6d6d21c02c34dc4669b6bd1e18a027ff75b53b5:CompileXIB /Users/dev/git/proj/Resources/Controllers/Controller.xib' and 'adf8a93da84709e14beaf35ec6d6d21c02c34dc4669b6bd1e18a027ff75b53b5:CompileXIB /Users/dev/git/proj/Resources/Controllers/Controller~ipad.xib')
无法构建节点:'/Users/dev/Library/Developer/Xcode/DerivedData/ project - aiatvieseyfwjkfwjkqncikcohpdsn / build /Products/Debug-iphoneos/ project .app/Controller~ipad。nib'(节点由多个命令生成;例如,“adf8a93da84709e14beaf35ec6d6d21c02c34dc4669b6bd1e18a027ff75b53b5:CompileXIB /用户/ dev / git /项目/资源/控制器/控制器。xib’和‘adf8a93da84709e14beaf35ec6d6d21c02c34dc4669b6bd1e18a027ff75b53b5:CompileXIB /用户/ dev / git /项目/资源/控制器/控制器~ ipad.xib”)
Should I rename them or is there another solution?
我应该重命名它们还是有其他的解决方案?
1 个解决方案
#1
11
It's a known bug in Xcode 9 beta. There is no workaround for the moment.
这是Xcode 9 beta版中一个已知的bug。目前没有变通办法。
"XIB and Storyboard files which use platform-specific naming conventions (e.g. “MyView~ipad.xib”) may cause the new build system to emit an “unable to build node” error. (32409101)"
使用特定于平台的命名约定(例如“MyView~ipad.xib”)的XIB和故事板文件可能会导致新的构建系统产生“无法构建节点”错误。(32409101)“
So YES, you can try to remove the "~ipad" and just execute it on iPad simulator.
所以,你可以试着删除“~ipad”,然后在ipad模拟器上执行它。
Open radar: New Build System fails to build project containing universal xib
开放雷达:新的构建系统不能构建包含universal xib的项目
#1
11
It's a known bug in Xcode 9 beta. There is no workaround for the moment.
这是Xcode 9 beta版中一个已知的bug。目前没有变通办法。
"XIB and Storyboard files which use platform-specific naming conventions (e.g. “MyView~ipad.xib”) may cause the new build system to emit an “unable to build node” error. (32409101)"
使用特定于平台的命名约定(例如“MyView~ipad.xib”)的XIB和故事板文件可能会导致新的构建系统产生“无法构建节点”错误。(32409101)“
So YES, you can try to remove the "~ipad" and just execute it on iPad simulator.
所以,你可以试着删除“~ipad”,然后在ipad模拟器上执行它。
Open radar: New Build System fails to build project containing universal xib
开放雷达:新的构建系统不能构建包含universal xib的项目