2017-09-22 5 views
-1

J'ai téléchargé la nouvelle version du SDK mobile AviasalesSDKTemplateAviasalesSDKTemplate ne peut pas être importé avec Swift 3.2

https://github.com/KosyanMedia/Aviasales-iOS-SDK

Il y a une erreur et je ne peux pas passer ce: « module compilé avec Swift 3.1 ne peut pas être importé dans Swift 3.2 'Je ne pense pas que le AviasalesSDKTemplate soit compatible avec Swift 3.2 et j'ai mis à jour les cocoapods mais cela n'a pas permis d'effacer l'erreur.

Des idées?

Voici le message d'erreur, il arrive avec après la mise à jour des gousses à la version ci-dessous:

2017-09-23 18:59:25.481038-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:25.507113-0400 AviasalesSDKTemplate[41438:401434] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/nedbayne-powell/Library/Developer/CoreSimulator/Devices/085DA53F-227C-4D81-97A9-EBF11E1A621A/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 
2017-09-23 18:59:25.507550-0400 AviasalesSDKTemplate[41438:401434] [MC] Reading from private effective user settings. 
2017-09-23 18:59:25.512063-0400 AviasalesSDKTemplate[41438:401434] [core] isAvailableForServiceType: for com.apple.social.twitter returning NO 
2017-09-23 18:59:25.512203-0400 AviasalesSDKTemplate[41438:401434] [core] isAvailableForServiceType: for com.apple.social.facebook returning NO 
2017-09-23 18:59:25.512307-0400 AviasalesSDKTemplate[41438:401434] [core] isAvailableForServiceType: for com.apple.social.sinaweibo returning NO 
2017-09-23 18:59:25.551071-0400 AviasalesSDKTemplate[41438:401896] [WC] -[WCSession onqueue_handleUpdateSessionState:]_block_invoke dropping as pairingIDs no longer match. pairingID (null), client pairingID: (null) 
2017-09-23 18:59:25.552819-0400 AviasalesSDKTemplate[41438:401896] [WC] WCSession is not paired 
2017-09-23 18:59:26.020166-0400 AviasalesSDKTemplate[41438:401978] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.091983-0400 AviasalesSDKTemplate[41438:401434] [MC] Lazy loading NSBundle MobileCoreServices.framework 
2017-09-23 18:59:26.092827-0400 AviasalesSDKTemplate[41438:401434] [MC] Loaded MobileCoreServices.framework 
2017-09-23 18:59:26.283677-0400 AviasalesSDKTemplate[41438:401978] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.427909-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.455692-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.458611-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.463569-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.468689-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:26.562240-0400 AviasalesSDKTemplate[41438:401978] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length 
2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Skippable Video" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60c000649cf0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000636280> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 
    Server = "cloudflare-nginx"; 
    Vary = Origin; 
    "cf-ray" = "3a311d499853184c-EWR"; 
    "x-backend-server" = "10.64.130.236:5000"; 
    "x-content-type-options" = nosniff; 
    "x-frame-options" = SAMEORIGIN; 
    "x-request-id" = "dbfcb694-d73e-4cf0-a736-d55f94514e56"; 
    "x-runtime" = "0.003548"; 
    "x-xss-protection" = "1; mode=block"; 
} }}}} 
2017-09-23 18:59:26.707385-0400 AviasalesSDKTemplate[41438:402000] 2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Skippable Video" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60c000649cf0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000636280> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5 
2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Native Ad" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x604000444da0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x608000a21a40> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 
    Server = "cloudflare-nginx"; 
    Vary = Origin; 
    "cf-ray" = "3a311d499852184c-EWR"; 
    "x-backend-server" = "10.64.130.76:5000"; 
    "x-content-type-options" = nosniff; 
    "x-frame-options" = SAMEORIGIN; 
    "x-request-id" = "f5df517a-1d41-4632-9e8c-aa97d0b55b65"; 
    "x-runtime" = "0.004656"; 
    "x-xss-protection" = "1; mode=block"; 
} }}}} 
2017-09-23 18:59:26.717444-0400 AviasalesSDKTemplate[41438:402015] 2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Native Ad" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x604000444da0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x608000a21a40> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 

2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Native Ad Precache" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x604000444da0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x608000a21a40> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 
    Server = "cloudflare-nginx"; 
    Vary = Origin; 
    "cf-ray" = "3a311d499852184c-EWR"; 
    "x-backend-server" = "10.64.130.76:5000"; 
    "x-content-type-options" = nosniff; 
    "x-frame-options" = SAMEORIGIN; 
    "x-request-id" = "f5df517a-1d41-4632-9e8c-aa97d0b55b65"; 
    "x-runtime" = "0.004656"; 
    "x-xss-protection" = "1; mode=block"; 
} }}}} 
2017-09-23 18:59:26.718286-0400 AviasalesSDKTemplate[41438:402015] 2017-09-23 22:59:26 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Native Ad Precache" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x604000444da0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x608000a21a40> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899 
2017-09-23 22:59:27 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Interstitial Ad" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60800085ca40 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000631460> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 
    Server = "cloudflare-nginx"; 
    Vary = Origin; 
    "cf-ray" = "3a311d499854184c-EWR"; 
    "x-backend-server" = "10.64.131.28:5000"; 
    "x-content-type-options" = nosniff; 
    "x-frame-options" = SAMEORIGIN; 
    "x-request-id" = "e2a3570a-f915-4991-9dd3-b2d3dc322a59"; 
    "x-runtime" = "0.003715"; 
    "x-xss-protection" = "1; mode=block"; 
} }}}} 
2017-09-23 18:59:27.278370-0400 AviasalesSDKTemplate[41438:402015] 2017-09-23 22:59:27 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Interstitial Ad" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60800085ca40 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000631460> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5 
2017-09-23 22:59:27 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Interstitial Ad Precache" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60800085ca40 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000631460> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a40e899ec5f\""; 
    Server = "cloudflare-nginx"; 
    Vary = Origin; 
    "cf-ray" = "3a311d499854184c-EWR"; 
    "x-backend-server" = "10.64.131.28:5000"; 
    "x-content-type-options" = nosniff; 
    "x-frame-options" = SAMEORIGIN; 
    "x-request-id" = "e2a3570a-f915-4991-9dd3-b2d3dc322a59"; 
    "x-runtime" = "0.003715"; 
    "x-xss-protection" = "1; mode=block"; 
} }}}} 
2017-09-23 18:59:27.279398-0400 AviasalesSDKTemplate[41438:402015] 2017-09-23 22:59:27 +0000 [Appodeal 2.1.4][error] Error while fetching ad queue for "Interstitial Ad Precache" request: Error Domain=com.appodeal.error Code=195944099 "Got error while fetching ad items from sever" UserInfo={NSLocalizedDescription=Got error while fetching ad items from sever, NSUnderlyingError=0x60800085ca40 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/plain" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/plain, NSErrorFailingURLKey=https://api.appodeal.com/get, com.alamofire.serialization.response.error.data=<20>, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x60c000631460> { URL: https://api.appodeal.com/get } { status code: 200, headers { 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    "Content-Encoding" = gzip; 
    "Content-Type" = "text/plain; charset=utf-8"; 
    Date = "Sat, 23 Sep 2017 22:59:26 GMT"; 
    Etag = "W/\"7215ee9c7d9dc229d2921a 
2017-09-23 18:59:29.472925-0400 AviasalesSDKTemplate[41438:401434] Could not successfully update network info during initialization. 
2017-09-23 18:59:29.493490-0400 AviasalesSDKTemplate[41438:402000] -[NSURL init] called; this results in an NSURL instance with an empty URL string. Please use one of the documented NSURL initialization methods instead (initWithString:, initFileURLWithPath:, etc.). This message shown only once. 
dyld: lazy symbol binding failed: Symbol not found: __T013SwiftProtobuf7MessagePAAEx10Foundation4DataV010serializedE0_AA12ExtensionMap_pSg10extensionsSb7partialAA21BinaryDecodingOptionsV7optionstKcfcfA0_ 
    Referenced from: /Users/nedbayne-powell/Library/Developer/CoreSimulator/Devices/085DA53F-227C-4D81-97A9-EBF11E1A621A/data/Containers/Bundle/Application/62DDB7FE-D82F-4A17-A9D8-9C434735B684/AviasalesSDKTemplate.app/Frameworks/HotellookSDK.framework/HotellookSDK 
    Expected in: /Users/nedbayne-powell/Library/Developer/CoreSimulator/Devices/085DA53F-227C-4D81-97A9-EBF11E1A621A/data/Containers/Bundle/Application/62DDB7FE-D82F-4A17-A9D8-9C434735B684/AviasalesSDKTemplate.app/Frameworks/SwiftProtobuf.framework/SwiftProtobuf 

dyld: Symbol not found: __T013SwiftProtobuf7MessagePAAEx10Foundation4DataV010serializedE0_AA12ExtensionMap_pSg10extensionsSb7partialAA21BinaryDecodingOptionsV7optionstKcfcfA0_ 
    Referenced from: /Users/nedbayne-powell/Library/Developer/CoreSimulator/Devices/085DA53F-227C-4D81-97A9-EBF11E1A621A/data/Containers/Bundle/Application/62DDB7FE-D82F-4A17-A9D8-9C434735B684/AviasalesSDKTemplate.app/Frameworks/HotellookSDK.framework/HotellookSDK 
    Expected in: /Users/nedbayne-powell/Library/Developer/CoreSimulator/Devices/085DA53F-227C-4D81-97A9-EBF11E1A621A/data/Containers/Bundle/Application/62DDB7FE-D82F-4A17-A9D8-9C434735B684/AviasalesSDKTemplate.app/Frameworks/SwiftProtobuf.framework/SwiftProtobuf 

(lldb) 

Dans le code des points d'erreur à ceci:

  (queue ?? DispatchQueue.main).async { completionHandler(dataResponse) } 
+0

Demandez-leur de mettre à jour la bibliothèque, peut-être? – Chisko

+0

Merci, je leur ai envoyé un email à ce sujet. –

+0

Je leur ai parlé et ça marche maintenant. :) –

Répondre

0

Désolé pour mon anglais.

Aller à https://github.com/KosyanMedia/Hotellook-iOS-SDK-Core, dans votre mise à jour de cette PODFILE lignes

use_frameworks! 
pod 'HotellookSDK', :git => 'https://github.com/KosyanMedia/Hotellook-iOS-SDK-Core.git' 
pod 'SwiftProtobuf', :git => 'https://github.com/apple/swift-protobuf.git', :tag => '0.9.902'

et la gousse de mise à jour via la commande "Mise à jour pod" dans la console. Utiliser la version 3.2 du langage Swift

+0

Merci beaucoup :) –

+0

Ça ne marche toujours pas, j'ai essayé ça mais quand j'ai cherché un vol il est venu avec une erreur. S'il vous plaît regardez ci-dessus j'ai posté le message d'erreur. –

+0

Dans votre Podfile j'ai essayé ces versions et ils ont travaillé: pod 'HotellookSDK',: git => 'https://github.com/KosyanMedia/Hotellook-iOS-SDK-Core.git',: tag => ' v1.0.2 ' pod' SwiftProtobuf ',: git =>' https://github.com/apple/swift-protobuf.git ',: tag =>' 0.9.905 ' –