Xcode10填坑

96
遛遛食
2018.09.19 12:23* 字数 301

升级Xcode10遇到的坑

1.libstdc++.6.0.9.tbd缺失

在Xcode10中取消了这个库,所以当第三库使用到的时候就会报错。
解决办法:
找一个Xcode10以下的版本,进入目录中,把libstdc++.6.0.9.tbd库拿出来放到Xcode10中对应的目录下。
真机目录:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
模拟器目录:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
libstdc++.6.0.9.tbd百度云链接:链接:https://pan.baidu.com/s/1qv8GdQbxL78FTSTNwsr29g 密码:9jgi

2.info.plist编译报错

Showing Recent Messages
:-1: Multiple commands produce '/Users/mc/Library/Developer/Xcode/DerivedData/xxx-cjlewfnngpnmytdofopeeyggyikv/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist':

  1. Target 'xxx' (project 'xxx') has copy command from 'xxx/Info.plist' to '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
  2. Target 'xxx' (project xxx') has process command with output '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
    这是因为项目中存在了多个info.plist文件导致报错
    解决办法:


    info.plist编译报错

    把info.plist都删除掉即可

3.#import <>崩溃问题,不提示问题

更改编译方式Xcode --> File --> Workspace Setttings --> Build System --> Legacy Build System

更换编译方式

更换编译方式
iOS学习