常见Xcode参数设置错误

时间:2021-06-21 18:49:49

错误1

dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport

  Referenced from: /Users/admin/Library/Application Support/iPhone Simulator/5.0/Applications/850749EE-A791-4EE3-9C1B-5BA20BC16B76/Nemo.app/Nemo

  Reason: image not found

AdSupport.framework 里  ASIdentifierManager在 iOS6.0以后才能使用,所以5.x的时候会报错

进入 Project-> Targets-> General -> Linked Frameworks and Libraries, 将 AdSupport.framework 右侧的status 由 required改为optional