_BSMachError while running Stanford's CS193p Smashtag app

后端 未结 5 2261
北恋
北恋 2021-02-14 01:06

I downloaded the Smasthag demo app from course\'s site. Project builds fine (after small changes in Twitter, TwitterRequest etc. classes, because I use the latest Xcode 7b4) and

5条回答
  •  没有蜡笔的小新
    2021-02-14 02:04

    You will need to add NSAppTransportSecurity as a dictionary and as the first child should be a bool named NSAllowsArbitraryLoads set to YES. Note that this opts out of NSAppTransportSecurity feature.

    See the App Transport Security configuration notes here. Note that this documentation is brand new and has an error in it, if you want to opt out completely. The error is that the NSAllowsArbitraryLoads key isn't shown as a direct child of NSAppTransportSecurity.

    Ideally what you should do is set the appropriate whitelisted domains and security settings.

    https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/index.html

提交回复
热议问题