Back to Xcode

See Also Xcode 8xcodebuild

Xcode 9

Xcode 9 在 2017年6月5日的苹果全球开发者大会上宣布。支持Swift 4 and Metal 2. 通过本地 WiFi 来安装、运行和调试 iOS 或 tvOS 设备。

Xcode 9 在2017年9月19日正式发布。今天给我推送了9.0.1升级。

1. Features

https://developer.apple.com/cn/xcode/features/

2. Changes

2.1. Crashed When Exporting Archives

https://stackoverflow.com/questions/46145276/xcode-9-gm-export-and-upload-to-app-store-crashing

➜  /tmp xattr
python version 2.7.14 can't run /usr/bin/xattr.  Try the alternative(s):

/usr/bin/xattr-2.6 (uses python 2.6)
/usr/bin/xattr-2.7 (uses python 2.7)

Run "man python" for more information about multiple version support in
Mac OS X.
➜  tmp cd /usr/bin 
➜  bin sudo rm xattr 
➜  bin sudo ln -s xattr-2.7 xattr
➜  bin cd /tmp 
➜  /tmp xattr
➜  /tmp 

2.2. xcodebuild Exporting Archives exportOptionsPlist Changes

xcodebuild导出ipa的时候提示plist需要增加provisioningProfiles相关信息,变化如下

diff --git a/MyProject/package.plist b/MyProject/package.plist
index 8fc3e9a..71634d1 100644
--- a/MyProject/package.plist
+++ b/MyProject/package.plist
@@ -5,6 +5,11 @@
 <dict>
   <key>method</key>
   <string>ad-hoc</string>
+  <key>provisioningProfiles</key>
+  <dict>
+    <key>com.li3huo.debug</key>
+    <string>demo_distribution</string>
+    <key>com.li3huo.release</key>
+    <string>ios_distribution</string>
+  </dict>
 
   <key>teamID</key>
   <string>NNNNBBBBBB</string>
(END)

3. Reference

MainWiki: Xcode_V9 (last edited 2017-10-17 00:14:44 by twotwo)