weixin_39615219
2020-11-27 19:04Support for mac catalyst
This PR adds support for mac catalyst (UIKit for Mac) (#408). The main changes are:
- Enabled the Mac checkbox on iOS framework targets (AppAuth_iOS and AppAuthCore) to make them compatible with mac catalyst.
- Added a new external user agent implementation for Catalyst (OIDExternalUserAgentCatalyst
) which basically does the same thing as OIDExternalUserAgentIOS
for iOS13. I could've added the support for Catalyst in that existing class, but it would have added too much complexity to the code.
- In the 'Compile Sources' build phase, I restricted OIDExternalUserAgentCatalyst
to macOS and OIDExternalUserAgentIOS
, OIDExternalUserAgentIOSCustomBrowser
to iOS only as these two classes don't compile on macOS Catalyst.
At that point the frameworks are able to build.
Then I needed to find a way to tell Cocoapods which user agents classes are for iOS and macOS. But the thing is that there is no new platform like 'iosmac' or 'maccatalyst' to specify in the podspec. So I did like Apple mentions and enclosed the code using TARGET_OS_MACCATALYST
.
I also tested using Carthage but it doesn't work. It seems that carthage bootstrap
doesn't compile the frameworks correctly for Catalyst. Support for Catalyst is in their roadmap.
该提问来源于开源项目:openid/AppAuth-iOS
- 点赞
- 回答
- 收藏
- 复制链接分享
9条回答
为你推荐
- 为什么index out of range
- python
- list
- 2个回答
- 为什么此版本标签会导致错误?
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 与php和催化剂的Jquery级联下拉列表
- javascript
- catalyst
- php
- jquery
- mysql
- 1个回答
- 在第三方网站上加载来自bookmarklet的iframe会导致CakePHP会话失败
- perl
- php
- session
- 1个回答
- 使用php将多个嵌套数组写入文件
- arrays
- csv
- php
- 2个回答