Skip to content

Commit b579ca7

Browse files
Add iOS Jenkins Xcode note
1 parent 4fbf0fb commit b579ca7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/docs.md

+13
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,22 @@ end
260260
#### Set iOS version
261261

262262
```bash
263+
# git clone
263264
export V=`git rev-parse --verify HEAD`
265+
266+
# Delete all old DerivedData
267+
rm -rf "/Users/`whoami`/Library/Developer/Xcode/DerivedData/ProjectName*"
268+
# xcode build
269+
cd "/Users/`whoami`/Library/Developer/Xcode/DerivedData/ProjectName*/Build/Products/Debug-iphonesimulator/ProjectName.app"
270+
271+
# set version
264272
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $V" Info.plist
265273
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $V" Info.plist
266274
/usr/bin/plutil -convert binary1 Info.plist
275+
276+
# zip app
277+
cd ..
278+
zip -r -X "$WORKSPACE/ProjectName.zip" ProjectName.app
267279
```
268280

269281
#### Set Android version
@@ -277,3 +289,4 @@ Dir.glob('./**/AndroidManifest.xml') do |xml|
277289
File.open(xml, 'w') { |f| f.write data }
278290
end
279291
```
292+

0 commit comments

Comments
 (0)