【发布时间】:2017-07-28 23:50:55
【问题描述】:
我已经根据 http 请求修改了 info.plist 文件。
当我运行一个 react-native 项目时,我得到一个错误 no bundle URL present ,但我不知道我犯了什么错误,
我的 info.plist 文件
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>api.xxx.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
【问题讨论】:
-
在您的终端中运行它,然后清理并重建您的项目。 “react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ./ios/release/main.jsbundle --assets-dest ./ios/release/main. jsbundle"
标签: react-native react-native-ios