升级Xcode10,直接跑之前的项目会出问题,一般会出现下面的报错。
Showing Recent Messages
:-1: Multiple commands produce '/Users/soldoros/Library/Developer/Xcode/DerivedData/SSChatView-bixmnbnaeuohmgedhldhnnilgcvu/Build/Products/Debug-iphonesimulator/SSChatView.app/Info.plist':
- Target 'SSChatView' (project 'SSChatView') has copy command from '/Users/soldoros/Desktop/git/SSChatView/SSChatView/Info.plist' to '/Users/soldoros/Library/Developer/Xcode/DerivedData/SSChatView-bixmnbnaeuohmgedhldhnnilgcvu/Build/Products/Debug-iphonesimulator/SSChatView.app/Info.plist'
- Target 'SSChatView' (project 'SSChatView') has process command with output '/Users/soldoros/Library/Developer/Xcode/DerivedData/SSChatView-bixmnbnaeuohmgedhldhnnilgcvu/Build/Products/Debug-iphonesimulator/SSChatView.app/Info.plist'
根据stackoverflow提供的两种解决方案,很轻松能搞定:
1、打开Xcode,进入file---Project/Workspace settings 设置Build System为 Legacy Build System 。
2、进入Build phase > Copy Bundle Resource/Compile Sources ,删除info.plis文件即可。
另外除了这个问题 ,ios12 删除了系统库libstdc++.6.0.9.tbd,这是因为iOS12.0中采用libc++代替lstdc++的动态库,我们可以在target-build Phases-Link Binary With Libraries中将libstdc++.6.0.9.tbd移除掉就可以了。
网友评论