Xcode peripherals or accessories - fancyfsz/FancyWiki GitHub Wiki
Xcode all release versions can be obtained from the following address: https://xcodereleases.com/
Xcode iOS device support files can be obtained from the following GitHub repository: https://github.com/iGhibli/iOS-DeviceSupport https://github.com/filsv/iOSDeviceSupport [更新得更及时]
DeviceSupport Path:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Provisioning Profile Path: ~/Library/MobileDevice/Provisioning Profiles/
Example of viewing the content of a .mobileprovision file: security cms -D -i example.mobileprovision | grep -A40 "Entitlements" grep UUID -A1 -a example.mobileprovision
SwiftFormat 参考链接:https://juejin.cn/post/7019111525759582215
1. brew install swiftformat
2. brew install --cask swiftformat-for-xcode
3. open SwiftFormat For Xcode.app
XCFormat 参考链接:https://juejin.cn/post/6844904068733894670
Xcode -> Xcode Extensions
find XCFormat then install it.
clang-format 参考链接:https://www.515code.com/posts/yp0k4y6g/
# 安装clang-format
brew install clang-format
# 查看安装的版本
clang-format --version
# 查看安装位置
whereis clang-format
clang-format的配置
打开 Automator.app
(自动操作应用)
选择快速操作
再选择 资源库 - 运行Shell脚本
选择位于 Xcode
,务必勾选 用输出内容替换所选文本
填写脚本内容为
export PATH=/opt/homebrew/bin:$PATH
clang-format
保存名字为xcode_format
,点击右上角的运行。
然后配置 .clang-format
文件
touch ~/.clang-format
具体内容参考 https://clang.llvm.org/docs/ClangFormatStyleOptions.html
使用:Xcode选中代码 右键 -> Services -> xcode_format
Invalid code signature problem Settings -> General -> Device Management and "trust" yourself as developer.
Missing package product
Reopen your Xcode, then File -> Packages -> Reset Package Caches