ストライプのiOS SDK - 送信互換性のないブロックポインタ型

ハワードG:

ストライプSDKは、ビルドの失敗の原因となっています。特定のエラーは、次のとおりです。

'STPAPIResponseBlock _Nonnullを__strong' 送信互換性のないブロックポインタ型(別名 '無効(^ __強い)(ResponseType _Nullable __strong、NSHTTPURLResponse * _Nullable __strong、NSError * _Nullable __strong)')

タイプのパラメータに '無効(^ _Nonnull)(STPSource * _Nullable __strong、NSHTTPURLResponse * _Nullable __strong、NSError * _Nullable __strong')

それが失敗しているコードがSTPAPIClient.m内で次のようです...

- (NSURLSessionDataTask *)retrieveSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret responseCompletion:(STPAPIResponseBlock)completion {
    NSString *endpoint = [NSString stringWithFormat:@"%@/%@", APIEndpointSources, identifier];
    NSDictionary *parameters = @{@"client_secret": secret};
    return [STPAPIRequest<STPSource *> getWithAPIClient:self
                                               endpoint:endpoint
                                             parameters:parameters
                                           deserializer:[STPSource new]
                                             completion:completion];
}

すべてが正常に動作して - そして私はXcodeの更新と信じています。今、私はこの問題を取得します。私は(CocoaPods経由でインストール)ストライプSDK、他のことに何も最初から新しいアプリケーションを構築してに失敗したことを試してみました。

私はXcodeの以前のバージョンにロールバックする前に - 任意の助けもいただければ幸いです。

Rohit Funde:

XCodeの11.4ストライプポッドv19.0を壊し、それはv19.0.1に固定してしまった
、ストライプポッドをアップグレードあなたを削除しpodfile.lockてみませんかpod install

おすすめ

転載: http://10.200.1.11:23101/article/api/json?id=377010&siteId=1