2020.04.09
Git修改密碼之后git push提示“fatal: Authentication failed for”
命令行輸入
git config --system --unset credential.helper
git config --global credential.helper store
然后在執行git push 輸入用戶名和密碼即可
2020.03.27
編譯報錯
/Users/apple/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/HUIListDemoTest.build/Debug-iphoneos/HUIListDemoTest.build/Script-F3847BE95BC819D7AE7F2E6A.sh: line 2: /Users/apple/Desktop/200310HUI控件/List/source/Demo/HUIListDemoTest/Pods/Target Support Files/Pods-HUIListDemoTest/Pods-HUIListDemoTest-resources.sh: Permission denied
1.png
Pods-resources.sh: Permission denied,即沒有權限
- 解決辦法:
chmod a+x “/Users/... 個人文件路徑 .../Pods/Pods-resources.sh”
例如我的是 chmod a+x "/Users/yunsung/360云盤/iOSPro/Jianbu/Jianbu/Pods/Target Support Files/Pods/Pods-resources.sh"
2018.08.23
- 問題: 更新至iOS11后,發現Group樣式的TableView,怎么設置頭部或底部高度都沒用
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 10;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 10;
}
- 原因:只要直接隨便設置下面兩個屬性值后,上面兩個方法就會響應
_tableView.sectionHeaderHeight = 0.01;
_tableView.sectionFooterHeight = 0.01;
2017.11.24
- warning: The Copy Bundle Resources build phase contains this target’s Info.plist file
- 原因:The Info.plist file build setting specifies the name of the Info.plist associated with your target. When building a target, Xcode reads this build setting and copies the referenced Info.plist into your application bundle. Because Xcode automatically processes the Info.plist, you should not add it to your Copy Bundle Resources build phase or make it a target member.
- 解決辦法:
(1)點擊 項目名->Build phases->找到Copy bundle Resources->找到里面的info.plist->選中然后delete
(2)重新添加.plist文件,但是取消選擇 "add to targets" 選項.
- warning: Missing file: is missing from working copy
- 原因:因為直接在Finder里刪除文件,而版本控制svn/git卻還記錄著對這個文件的引用,所以導致爆出警告
- 解決辦法1:
1,打開Finder,按照爆出的提示路徑,從/Users/mac/Desktop,一路對照下去,少文件夾,就創建文件,
2,然后,打開工程,add new file,把文件夾aaa重新添加到對應文件夾下面,
3,重新創建缺失的文件 test.m,并添加到aaa文件下,
4,最后,在工程中,重新刪除aaa文件夾和test.m文件。就可以消除警告。
方法2:
1, 打開終端,cd到報錯的路徑 cd /Users/mac/Desktop/TestProject/aaa/
爆出錯誤cd: /Users/mac/Desktop/TestProject/aaa/: No such file or directory, 這是因為,我把文件夾aaa都刪除了,所以,還是要進入finder,重新創建文件夾aaa,再重新cd 到前面的路徑,pwd查看一下,顯示/Users/mac/Desktop/TestProject/aaa,
2,在終端執行 git rm test.m,警告消除。