之前的博客添加不了了, 只能重新寫一個了
- (null): warning: (arm64) /Users/scmbuild/workspace/standard-pay/IOS/cp_record_client_release_729146/2134/mspc_iphone_msdk/AlipaySDK4Standard/AlipaySDK/Library/UTDID.framework/UTDID(UTDIDOpenUDID.o) unable to open object file: No such file or directory
治標不治本: 我需要符號文件
http://blog.csdn.net/Jerk_G/article/details/51135273
- Entitlement文件移動位置後找不着
- 手動添加Entitlement文件
通常,Xcode會自動管理Entitlement文件,所以我們並不需要在Xcode Project的Buidling Settings -> Code Signing -> Code Signing Entitlements 特意設置文件。
舊版本的Xcode,你需要自己添加Entitlement文件:
- ERROR: missing Change-Id in commit message footer
git pull --rebase
- This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes
在子線程中訪問了UIKit
- Implicit declaration of function 'CC_SHA256' is invalid in C99
#include <CommonCrypto/CommonCrypto.h>
- (projectName) does not have an architecture that (deviceName) can execute.
項目支持的版本, 不包括當前設備
查看 Target -> General -> Deployment Indo -> Deployment Target (所支持的版本)
和當前手機的系統版本
- Xcode10版本工程cocoapod <=1.5.3問題
/Library/Ruby/Gems/2.3.0/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:95:in `parse_results': undefined method `map' for nil:NilClass (NoMethodError)
解決辦法: sudo gem install -n /usr/local/bin cocoapods --pre
- fatal: unable to access 'https://gitee.com/mo_xiao_yan/Monopoly.git/': Could not resolve proxy: gerrit
當我們修改完git 代理時,git clone往往出現錯誤,此時如果想重置代理,卸載git是沒有用的,而是重置git代理
因此,我們只需要執行以下兩句命令即可
git config --global --unset http.proxy
git config --global --unset https.proxy
- this project has not been localized
The other solutions didn't work for me so I ended up solving this by editing the project.pbxproj file in textedit. Change knownRegions from an empty list to include en and Base:
knownRegions = (
en,
Base,
);
- missing Change-Id in commit message footer
刪掉項目, 重新拉取, 再推送, 按提示運行
- sourceTree push error
remote: Invalid username or password.
- framework not found *****
Targets -> General -> Linked Farmeworks and Libraries
將你需要分framework手動導入就行
- pod search *** 找不到庫最新版本
參考:http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
刪除本地緩存,重新setup, 問題解決
rm -fr ~/.cocoapods/repos/master
pod setup
以下2019.08.07添加:
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
MacOS 升級後 提交代碼報錯
執行 xcode-select --install (重新安裝CommandLineTools)
- didDisconnect Error Domain=CBErrorDomain Code=7 "The specified device has disconnected from us."
調用 [peripheral discoverServices:] 時報錯,ble的服務有問題
- Failed to find a suitable device for the type Apple Watch Series 3 - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm) with runtime watchOS 5.3 (5.3 - 16U567) - com.apple.CoreSimulator.SimRuntime.watchOS-5-3
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
- linker command failed with exit code 1 (use -v to see invocation)
查看target的Build Phases 是否重複導入
以下2020.01.08添加:
- filenames are used to distinguish private declarations with the same name
Targets -> BuildSettings -> Compile Sources 直接搜索報錯的文件,就發現了,導入了相同的文件
- Command CompileSwift failed with a nonzero exit code
打開你的 Target 的 Build Settings:
點擊加號,添加一個 User-Defined Setting:
命名爲 SWIFT_ENABLE_BATCH_MODE,設置爲 NO:
設置完,再編譯就能顯示確切的 Error 位置。
- git push origin HEAD:refs/for/pod
- xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
sudo xcode-select --reset
- Swift Compiler Error Group
關掉Xcode;刪除DerivedData文件;打開Xcdoe先Clean再Run
- Pod install 報錯:跑到Generating Pods project 處報錯:[!] Oh no, an error occurred.
刪除 Pods 文件後
執行 pod install
- Swift Compiler Error
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
很多行 error: filename " pb.swift" used twice: ….
因爲我直接右鍵 Add到一個項目裏,導致整個文件夾裏的文件都複製導入了一份
所以刪除複製的文件夾,刪除需要導入的文件,重新導入時,選取多個項目就行了
- Cannot find interface declaration for ‘***’
父類出現了循環引用
- The Application does not have a valid signature