Сеть API Call работает локально, но не на Apple Testflight BuildIOS

Программируем под IOS
Ответить
Anonymous
 Сеть API Call работает локально, но не на Apple Testflight Build

Сообщение Anonymous »

Multipline Multiplyform IOS Testflight Appluge имеет проблемы с достижением некоторых удаленных API, но эта проблема возникает только при тестовой сборке полета, а не с локальной сборкой. < /p>
некоторая удаленная работа API, но следующее не: < /p>

/>[*]"Id.twitch.tv"
[*]"accounts.spotify.com"
< /ul>
Все они имеют какую -то аутентификацию, TMDB использует ключ API, и twitch /spotif local.properties в приложение. < /p>
Что я попробовал до сих пор: < /p>

Добавить nsallowsarbitraryloads: true my info.plist (предпочел бы не использовать его) < /li>
Добавить App Transport Security. /> info.plist:

Код: Выделить всё

     & l t ; p l i s t   v e r s i o n = & q u o t ; 1 . 0 & q u o t ; & g t ; < b r   / >         & l t ; d i c t & g t ; < b r   / >                 & l t ; k e y & g t ; N S A p p T r a n s p o r t S e c u r i t y & l t ; / k e y & g t ; < b r   / >                 & l t ; d i c t & g t ; < b r   / >                         & l t ; k e y & g t ; N S E x c e p t i o n D o m a i n s & l t ; / k e y & g t ; < b r   / >                         & l t ; d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; a p i . t h e m o v i e d b . o r g & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; o p e n l i b r a r y . o r g & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; b o a r d g a m e g e e k . c o m & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; a p i . g e e k d o . c o m & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; a p i . i g d b . c o m & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; i d . t w i t c h . t v & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; a p i . s p o t i f y . c o m & l t ; / k e y & g t ; < b r   / >                                 & l t ; d i c t & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   s u b d o m a i n s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S I n c l u d e s S u b d o m a i n s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   a l l o w   H T T P   r e q u e s t s - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n A l l o w s I n s e c u r e H T T P L o a d s & l t ; / k e y & g t ; < b r   / >                                         & l t ; t r u e   / & g t ; < b r   / >                                         & l t ; ! - - I n c l u d e   t o   s p e c i f y   m i n i m u m   T L S   v e r s i o n - - & g t ; < b r   / >                                         & l t ; k e y & g t ; N S T e m p o r a r y E x c e p t i o n M i n i m u m T L S V e r s i o n & l t ; / k e y & g t ; < b r   / >                                         & l t ; s t r i n g & g t ; T L S v 1 . 1 & l t ; / s t r i n g & g t ; < b r   / >                                 & l t ; / d i c t & g t ; < b r   / >                                 & l t ; k e y & g t ; a c c o u n t s . s p o t i f y . c o m & l t ; / k e y >


NSIncludesSubdomains


NSTemporaryExceptionAllowsInsecureHTTPLoads


NSTemporaryExceptionMinimumTLSVersion
TLSv1.1



CADisableMinimumFrameDurationOnPhone

CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
$(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundleName
$(PRODUCT_NAME)
CFBundlePackageType
$(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString
2.1.0
CFBundleURLTypes


CFBundleTypeRole
Editor
CFBundleURLSchemes

com.googleusercontent.apps.40626889661-ugitoa4tmn1ko9dpvi0qp2botmdhpc47



CFBundleTypeRole
Editor
CFBundleURLSchemes

de.ashman.ontrack



CFBundleVersion
2
FirebaseAppDelegateProxyEnabled
0
GADApplicationIdentifier
ca-app-pub-7769337200974564~8327002955
GIDClientID
40626889661-ugitoa4tmn1ko9dpvi0qp2botmdhpc47.apps.googleusercontent.com
ITSAppUsesNonExemptEncryption

LSRequiresIPhoneOS

NSApplicationCrashOnExceptions

UIApplicationSceneManifest

UIApplicationSupportsMultipleScenes


UIBackgroundModes

fetch
remote-notification

UILaunchScreen

UIRequiredDeviceCapabilities

armv7

UISupportedInterfaceOrientations

UIInterfaceOrientationPortrait
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight

UISupportedInterfaceOrientations~ipad

UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight



gradle build konfig:

Код: Выделить всё

buildkonfig {
...
defaultConfigs {
// API KEYS
buildConfigField(
STRING,
"TMDB_API_KEY",
gradleLocalProperties(rootDir, providers).getProperty("TMDB_API_KEY").orEmpty()
)
...
}
}
Настройка клиента HTTP для API TMDB:
fun createTMDBClient(): HttpClient = HttpClient {
setupContentNegotiation()

defaultRequest {
url {
protocol = URLProtocol.HTTPS
host = TMDB_URL

path(TMDB_PATH_URL)

parameters.append("api_key", BuildKonfig.TMDB_API_KEY)
parameters.append("include_adult", "false")
}
}
}
< /code>
Ошибка API TMDB: «Незаконное ввод: ... требуется для ... но они отсутствовали на пути: $», поэтому, похоже, я получаю пустой ответ JSON. < /p>
Я нахожусь здесь. У кого -нибудь есть и испытывает что -то подобное?

Подробнее здесь: https://stackoverflow.com/questions/797 ... ight-build
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»