我有一个使用Xcode 9开发的项目,切换到Xcode 10后,在构建过程中出现错误:
错误:多个命令产生了'SomePath / MyApp.app':
1)目标'MyApp'已创建目录命令,输出为'/SomePath/Kvitt.app'2
)该命令取决于目标'MyApp'中的命令:脚本阶段“ [ CP]“复制广告资源”
我在不同的项目和Info.plist文件中遇到了类似的问题,我使用此答案解决了
但是,这次的错误涉及MyApp.app,并且“ 复制捆绑资源”中没有这样的文件
切换到旧版构建系统可以消除这种情况,但是想知道是什么原因造成的,以及如何在新的构建系统中修复它
有任何想法吗?
I have got the same issue : Build error in Xcode 10 "Multiple commands produce...
:-1: Multiple commands produce '/Users/m/Library/Developer/Xcode/DerivedData/FAR-
axuthwysrkuqbcdvfglntqgbiugn/Build/Products/Debug-
iphonesimulator/F.A.R.app/.gitkeep':
1) Target 'FAR' (project 'FAR') has copy command from '/Users/m/Desktop/Shubham
Code/Backup/Shubham 2018/SVN
Codes/FAR/FAR/FAR/ThirdParty/BPStatusBarAlert/Assets/.gitkeep' to
'/Users/m/Library/Developer/Xcode/DerivedData/FAR-
axuthwysrkuqbcdvfglntqgbiugn/Build/Products/Debug-iphonesimulator/F.A.R.app/.gitkeep'
2) Target 'FAR' (project 'FAR') has copy command from '/Users/m/Desktop/Shubham
Code/Backup/Shubham 2018/SVN
Codes/FAR/FAR/FAR/ThirdParty/BPStatusBarAlert/Classes/.gitkeep' to
'/Users/m/Library/Developer/Xcode/DerivedData/FAR-
axuthwysrkuqbcdvfglntqgbiugn/Build/Products/Debug-iphonesimulator/F.A.R.app/.gitkeep'
Run Code Online (Sandbox Code Playgroud)
This can be resolved by following below steps :
Step 1 : Go to build Phases.
Step 2 : Copy bundle resources and remove the .gitkeep file.
Step 3 :Build and Success.
In your case some other file will create issue, So check the file name and delete it.
As per my investigation, issue is because of duplicacy of file.
Happy Coding.
| 归档时间: |
|
| 查看次数: |
7196 次 |
| 最近记录: |