一般都在这个位置~/Library/Developer/CoreSimulator/Devices/<device UDID>/data/Media/DCIM/100APPLE You can also get the <device UDID> from Devices window (Shift+CMD+2),这个在xcode里的快捷键可以直接找到 Where the value of <device UDID> can be determined using the command: xcrun simctl list devices. xcrun simctl list devices | grep Booted | grep -E '\w+-\w+-\w+-\w+-\w+' -o 如果有打开的模拟器,这个命令可以直接显示
xcode 选择行列模式
Shift + Control + Up/Down Arrow Shift + Control + Click Option + Drag
Using same version number for multiple Xcode targets Info.plist
多个 target 后如何保持 version 和 buildnumber 一致?
方法一
Add a new custom property to your project (Editor -> Add Build Setting -> Add User Defined Setting). Let’s name it MY_VERSION and let’s give it value 1.0.1.
Now go to the Info section of every target and set the version to ${MY_VERSION}.
方法二
参考自动增加 build number 类似,把所有 targets 的 plist 位置设置好,一个个同步,比如:
# Type a script or drag a script file from your workspace to insert its path. echo"${SRCROOT}"