gpt4 book ai didi

ios - mobilefirst ios 混合应用程序无法连接到生产服务器

转载 作者:行者123 更新时间:2023-11-29 10:22:54 25 4
gpt4 key购买 nike

我正在构建一个已经在 android 中运行的应用程序,但是当我尝试在我的 iphone 环境 (ios 9.1) 中连接相同的应用程序时,无法连接到我的服务器

这是我的一些配置:

<iphone bundleId="com.xxxxxx" securityTest="xxxxxxxxxxxxx" version="1.0">
<worklightSettings include="false"/>
<security>
<encryptWebResources enabled="false"/>
<testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
</security>
</iphone>

以及来 self 的 xcode 的日志:

2015-11-26 10:05:52.100 AppName[353:79399] [INFO] [AppName.core.main] wlCommonInit: Antes connect...
2015-11-26 10:05:52.102 AppName[353:79391] [DEBUG] [NONE] establishSSLClientAuth
2015-11-26 10:05:52.105 AppName[353:78667] [WARN] [USER_CERT_AUTH] +[WLUserAuthManager getCertificateIdentifier] in WLUserAuthManager.m:68 :: Certificate Identifier Key: com.worklight.userenrollment.certificate:com.AppName
2015-11-26 10:05:52.121 AppName[353:78667] THREAD WARNING: ['UserAuth'] took '16.052979' ms. Plugin should use a background thread.
2015-11-26 10:05:52.124 AppName[353:79391] [DEBUG] [NONE] establishSSLClientAuth isCertificateExists: false
2015-11-26 10:05:52.129 AppName[353:79399] [DEBUG] [NONE] Request [/apps/services/api/AppName/iphone/init]
2015-11-26 10:05:52.133 AppName[353:79393] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] +[WLAFHTTPClientWrapper requestWithURL:] in WLAFHTTPClientWrapper.m:38 :: Request url is https://DomainName:443/ProjectName/apps/services/api/AppName/iphone/init
2015-11-26 10:05:52.147 AppName[353:79393] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper start] in WLAFHTTPClientWrapper.m:183 :: Starting the request with URL https://DomainName:443/ProjectName/apps/services/api/AppName/iphone/init
2015-11-26 10:05:52.283 AppName[353:78863] CFNetwork SSLHandshake failed (-9824)
2015-11-26 10:05:52.284 AppName[353:78863] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
2015-11-26 10:05:52.287 AppName[353:78667] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:215 :: Request Failed
2015-11-26 10:05:52.289 AppName[353:78667] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:216 :: Response Status Code : 0
2015-11-26 10:05:52.293 AppName[353:78667] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:217 :: Response Error : An SSL error has occurred and a secure connection to the server cannot be made.
2015-11-26 10:05:52.302 AppName[353:78667] [DEBUG] [WORKLIGHT] -[NotificationEx loadingStop:] in NotificationEx.m:150 :: Loading stop
2015-11-26 10:05:52.342 AppName[353:78667] THREAD WARNING: ['Notification'] took '36.349121' ms. Plugin should use a background thread.
2015-11-26 10:05:52.444 AppName[353:79391] [ERROR] [NONE] [/apps/services/api/AppName/iphone/init] Host is not responsive.
2015-11-26 10:05:52.446 AppName[353:79399] [INFO] [AppName.core.main] wlCommonInit: connectFailure...

最佳答案

iOS 9 要求使用应用程序传输安全 (ATS) 进行连接。有关更多详细信息和问题的解决方案,请参阅以下博客:

a) IBM MFP support for iOS 9

b) Enable ATS for iOS 9 in IBM MFP

c) ATS and BitCode

关于ios - mobilefirst ios 混合应用程序无法连接到生产服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33940701/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com