-
Select a provisioning profile for the "Debug" build configuration in the project editor.
解决地址 -
UITableView走numberOfRowsInSection方法,却不走cellForRowAtIndexPath方法小记.
解决地址 -
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.'
解决:present放在主线程 -
Failed to load Info.plist from bundle at path ***
奇葩问题1,不是我的错
解决方案:
- 清空项目 shift+command+k
- 把app从模拟器中删除
- 重启模拟器
- 'UICollectionView must be initialized with a non-nil layout parameter' (UICollectionView初始化时必须指定一个非空的布局对象)
解决方案:UICollectionView只能通过let collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)这种方式创建。我之前是先设置frame,后设置layout都不行
- Command PhaseScriptExecution failed with a nonzero exit code
解决方案:Clean工程,不行的话重启Xcode。
-
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'
解决地址 -
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














网友评论