记录一些问题的解决方案

  1. Select a provisioning profile for the "Debug" build configuration in the project editor.
    解决地址

  2. UITableView走numberOfRowsInSection方法,却不走cellForRowAtIndexPath方法小记.
    解决地址

  3. *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.'
    解决:present放在主线程

  4. Failed to load Info.plist from bundle at path ***


    记录一些问题的解决方案_第1张图片
    奇葩问题1,不是我的错

解决方案:

  1. 清空项目 shift+command+k
  2. 把app从模拟器中删除
  3. 重启模拟器
  1. 'UICollectionView must be initialized with a non-nil layout parameter' (UICollectionView初始化时必须指定一个非空的布局对象)

解决方案:UICollectionView只能通过let collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)这种方式创建。我之前是先设置frame,后设置layout都不行

  1. Command PhaseScriptExecution failed with a nonzero exit code

解决方案:Clean工程,不行的话重启Xcode。

  1. pod导入YYText,在ViewController中使用时就crash崩溃问题。 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
    解决地址

  2. Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 623, TID: 100436, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0

貌似时只有Xs,XPlus 才有的问题。https://stackoverflow.com/questions/52979259/cmotionmanager-crash-on-instantiation

你可能感兴趣的:(记录一些问题的解决方案)