20、打包報錯:
Missing Info.plist value. The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' must contain a list of identifiers used to submit and handle tasks when 'UIBackgroundModes' has a value of 'processing'.
For more information, refer to the Information Property List Key Reference at https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html. With error code STATE_ERROR.VALIDATION_ERROR.90771 for id 71411041-26f9-435a-ae4d-454c90df630e
19、SDWebImage設(shè)置圖片內(nèi)存暴增,原圖過大導致,可設(shè)置options進行調(diào)整
// 設(shè)置options為SDWebImageScaleDownLargeImages,即可。
[obj sd_setImageWithURL:url placeholderImage:JFPConst.jfp_defaultImg options:SDWebImageScaleDownLargeImages];
9、UILabel文字過長時換行失效
// 設(shè)置屬性實現(xiàn)正確換行
// 為 UILabel 配置 preferredMaxLayoutWidth,設(shè)置最大寬度,即可成功換行!
[_titleLbl setPreferredMaxLayoutWidth:kSW - 60];
閱讀原文
8、如何刪除項目中的.svn文件
terminal:cd 文件目錄
執(zhí)行命令: find . -type d -name ".svn"|xargs rm -rf
7、Cornerstone日志無法查看如何解決?
清除Cornerstone緩存文件,重啟即可重新加載歷史日志。
命令cmd+shift+g ~/資源庫/Caches/Cornerstone,刪除后,重啟app
閱讀原文
6、編譯報錯 Multiple commands produceMultiple commands produce '/Users/XXX/Library/Developer/Xcode/DerivedDat...
一般遇到這種問題,點擊工程targets,然后在copy bundle resource 找到對用的資源文件路徑,刪除后運行即可
閱讀原文
5、項目編譯報錯 Please check the connection to the device, and review all errors in the Device simulates
解決:手機重啟,重新設(shè)置信任即可
4.sudo gem install cocoapods 執(zhí)行命令式提示沒有權(quán)限You don't have write permissions for the /Library
解決:sudo gem install -n /usr/local/bin cocoa pods 輸入密碼即可進行安裝
3.刪除Xcode中多余的證書provisioning profile
- command + shift +G 前往文件夾:
- ~/Library(資源庫)/MobileDevice/Provisioning Profiles
- 刪除里面的文件,重新導入XX.mobileprovision
2.cocoapods搜索不到要使用的庫
[!] Unable to find a pod with name, author, summary, or description matching HXWeiboPhotoPicker
解決:
- 執(zhí)行:pod setup
- 移除search_index.json文件: rm ~/Library/Caches/CocoaPods/search_index.json
- 執(zhí)行:pod search xxx
1.如果使用了readonly修飾了屬性,并且重寫了getter方法,則系統(tǒng)會屏蔽掉下劃線的成員變量。
此時需要實用合成指令指定下劃線成員變量。