配置支持Mac Catalyst的操作如下:
首先MAC需要升級到10.15
(1)scheme後面選擇Mc設備
(2)target需要選擇iPad和Mac
(3)添加支持mac的架構
第三步比較重要,因爲一般老的項目只支持iOS,不會有x86_64/i386架構,需要手動添加,否則會出現下面的錯誤:
Reason: The run destination My Mac is not valid for Archiving the scheme 'AGEmojiKeyboardSample'.
Recovery suggestion: My Mac doesn’t support any of AGEmojiKeyboardSample.app’s architectures. You can add My Mac’s x86_64h architecture to AGEmojiKeyboardSample.app’s Architectures build setting.