Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode integration issue. #60

Closed
iPatel007 opened this issue Oct 17, 2019 · 10 comments
Closed

Xcode integration issue. #60

iPatel007 opened this issue Oct 17, 2019 · 10 comments

Comments

@iPatel007
Copy link

iPatel007 commented Oct 17, 2019

I just tried to integrate package and got issue in Xcode/iOS.

=== BUILD TARGET stripe_payment OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.m:337:70: warning: 'UIKeyboardTypeASCIICapableNumberPad' is only available on iOS 10.0 or newer [-Wunguarded-availability]
@"ascii-capable-number-pad": @(UIKeyboardTypeASCIICapableNumberPad),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.m:8:
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.h:191:15: note: expanded from macro 'RCT_ENUM_CONVERTER'
mapping = values;
^~~~~~
In module 'UIKit' imported from /Users/xyz/Desktop/strip_integration/ios/Pods/Target Support Files/stripe_payment/stripe_payment-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h:105:5: note: 'UIKeyboardTypeASCIICapableNumberPad' has been explicitly marked partial here
UIKeyboardTypeASCIICapableNumberPad NS_ENUM_AVAILABLE_IOS(10_0), // A number pad (0-9) that will always be ASCII digits.
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.m:337:70: note: enclose 'UIKeyboardTypeASCIICapableNumberPad' in an @available check to silence this warning
@"ascii-capable-number-pad": @(UIKeyboardTypeASCIICapableNumberPad),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.m:8:
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/RCTConvert.h:191:15: note: expanded from macro 'RCT_ENUM_CONVERTER'
mapping = values;
^~~~~~
1 warning generated.
=== BUILD TARGET stripe_payment OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:127:14: error: use of undeclared identifier 'STPPaymentMethodTypeFPX'; did you mean 'STPPaymentMethodTypeCard'?
case STPPaymentMethodTypeFPX: return @"fpx";
^~~~~~~~~~~~~~~~~~~~~~~
STPPaymentMethodTypeCard
In module 'Stripe' imported from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:11:
/Users/xyz/Desktop/strip_integration/ios/Pods/Stripe/Stripe/PublicHeaders/STPPaymentMethodEnums.h:16:5: note: 'STPPaymentMethodTypeCard' declared here
STPPaymentMethodTypeCard,
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:127:14: error: duplicate case value 'STPPaymentMethodTypeCard'
case STPPaymentMethodTypeFPX: return @"fpx";
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:124:14: note: previous case defined here
case STPPaymentMethodTypeCard: return @"card";
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:238:5: error: use of undeclared identifier 'PKPaymentNetworkElo'; did you mean 'TPSPaymentNetworkElo'?
TPSPaymentNetworkConditionalMapping(Elo, 12.1.1);
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
#define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
^
:55:1: note: expanded from here
PKPaymentNetworkElo
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:211:1: note: 'TPSPaymentNetworkElo' declared here
TPSPaymentNetworkDefine(Elo, @"elo");
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
#define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
^
:30:1: note: expanded from here
TPSPaymentNetworkElo
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:242:5: error: use of undeclared identifier 'PKPaymentNetworkMada'; did you mean 'TPSPaymentNetworkMada'?
TPSPaymentNetworkConditionalMapping(Mada, 12.1.1);
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
#define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
^
:63:1: note: expanded from here
PKPaymentNetworkMada
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:215:1: note: 'TPSPaymentNetworkMada' declared here
TPSPaymentNetworkDefine(Mada, @"mada");
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
#define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
^
:34:1: note: expanded from here
TPSPaymentNetworkMada
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:722:42: warning: 'startPollingSourceWithId:clientSecret:timeout:completion:' is deprecated: You should poll your own backend to update based on source status change webhook events it may receive. [-Wdeprecated-declarations]
[stripeAPIClient startPollingSourceWithId:sourceID clientSecret:clientSecret timeout:10 completion:^(STPSource *source, NSError *error) {
^
In module 'Stripe' imported from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:11:
/Users/xyz/Desktop/strip_integration/ios/Pods/Stripe/Stripe/PublicHeaders/STPAPIClient.h:347:243: note: 'startPollingSourceWithId:clientSecret:timeout:completion:' has been explicitly marked deprecated here
- (void)startPollingSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret timeout:(NSTimeInterval)timeout completion:(STPSourceCompletionBlock)completion NS_EXTENSION_UNAVAILABLE("Source polling is not available in extensions") DEPRECATED_MSG_ATTRIBUTE("You should poll your own backend to update based on source status change webhook events it may receive.");
^
In module 'Foundation' imported from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:9:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/AvailabilityMacros.h:179:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) attribute((deprecated(s)))
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1635:22: warning: 'supplementarySubLocality' is only available on iOS 9.2 or newer [-Wunguarded-availability]
if (inputContact.supplementarySubLocality) {
^~~~~~~~~~~~~~~~~~~~~~~~
In module 'PassKit' imported from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h:30:58: note: 'supplementarySubLocality' has been explicitly marked partial here
@Property (nonatomic, retain, nullable) NSString *supplementarySubLocality API_DEPRECATED("Use subLocality and subAdministrativeArea on -postalAddress instead", ios(9.2, 10.3), watchos(3.0, 3.2));
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1635:22: note: enclose 'supplementarySubLocality' in an @available check to silence this warning
if (inputContact.supplementarySubLocality) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1636:47: warning: 'supplementarySubLocality' is only available on iOS 9.2 or newer [-Wunguarded-availability]
[contactDetails setValue:inputContact.supplementarySubLocality forKey:@"supplementarySubLocality"];
^~~~~~~~~~~~~~~~~~~~~~~~
In module 'PassKit' imported from /Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h:30:58: note: 'supplementarySubLocality' has been explicitly marked partial here
@Property (nonatomic, retain, nullable) NSString *supplementarySubLocality API_DEPRECATED("Use subLocality and subAdministrativeArea on -postalAddress instead", ios(9.2, 10.3), watchos(3.0, 3.2));
^
/Users/xyz/Documents/patel/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1636:47: note: enclose 'supplementarySubLocality' in an @available check to silence this warning
[contactDetails setValue:inputContact.supplementarySubLocality forKey:@"supplementarySubLocality"];

@jonasbark
Copy link
Owner

Hi!
Can you attach your podspec.lock file in the iOS directory of your project?

If should contain something like

PODS:
  - Flutter (1.0.0)
  - Stripe (18.0.0)
  - stripe_payment (1.0.0):
    - Flutter
    - Stripe (>= 17.0.1)

@iPatel007
Copy link
Author

iPatel007 commented Oct 17, 2019

Thanks for quick reply

Sure below is current

Podfile.lock


PODS:
  - Flutter (1.0.0)
  - Stripe (17.0.1)
  - stripe_payment (1.0.0):
    - Flutter
    - Stripe (>= 17.0.1)

DEPENDENCIES:
  - Flutter (from `.symlinks/flutter/ios`)
  - stripe_payment (from `.symlinks/plugins/stripe_payment/ios`)

SPEC REPOS:
  https://github.com/cocoapods/specs.git:
    - Stripe

EXTERNAL SOURCES:
  Flutter:
    :path: ".symlinks/flutter/ios"
  stripe_payment:
    :path: ".symlinks/plugins/stripe_payment/ios"

SPEC CHECKSUMS:
  Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
  Stripe: b8e845e12fd6dbc9cb010422b3b6b212e803d308
  stripe_payment: 97045f15be956bad8e7fe12efa9f2d7437fff236

PODFILE CHECKSUM: b6a0a141693093b304368d08511b46cf3d1d0ac5

COCOAPODS: 1.7.3

I changed as you mentioned in above comment like.

 PODS:
  - Flutter (1.0.0)
  - Stripe (18.0.0)
  - stripe_payment (1.0.0):
    - Flutter
    - Stripe (>= 17.0.1)

And getting there errors

Launching lib/main.dart on iPhone 7 in debug mode...
[{"event":"app.progress","params":{"appId":"ba007496-83cb-4eb4-bd2c-0a1b4c9cdfae","id":"0","progressId":null,"message":"Running pod install..."}}]Running pod install...

CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  - Flutter
  - stripe_payment

Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `stripe_payment` from `.symlinks/plugins/stripe_payment/ios`

Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Stripe":
  In snapshot (Podfile.lock):
    Stripe (= 18.0.0, >= 17.0.1)

  In Podfile:
    stripe_payment (from `.symlinks/plugins/stripe_payment/ios`) was resolved to 1.0.0, which depends on
      Stripe (>= 17.0.1)

It seems like you've changed the constraints of dependency `Stripe` inside your development pod `stripe_payment`.
You should run `pod update Stripe` to apply changes you've made.

/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/resolver.rb:88:in `resolve'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer.rb:398:in `analyze'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/installer.rb:156:in `install!'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/command/install.rb:51:in `run'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.7.3/libexec/gems/cocoapods-1.7.3/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.7.3/libexec/bin/pod:22:in `load'
/usr/local/Cellar/cocoapods/1.7.3/libexec/bin/pod:22:in `<main>'

Error output from CocoaPods:

[!] Automatically assigning platform `ios` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone 7.

@iPatel007
Copy link
Author

iPatel007 commented Oct 17, 2019

@jonasbark
Any luck? I have been trying to solve this issue for 4 hours. what any thing I'm missing? Or need any extra setup?

@jonasbark
Copy link
Owner

Can you try to update your iOS deployment target to 10.0?

@iPatel007
Copy link
Author

Changed .. still facing issue.:(
I just create new flutter project and add dependance in .yaml file. and facing issue. No other code. No other package.


Xcode's output:
↳
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:238:5: error: use of undeclared identifier 'PKPaymentNetworkElo'; did you mean 'TPSPaymentNetworkElo'?
        TPSPaymentNetworkConditionalMapping(Elo, 12.1.1);
        ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
    #define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
                                                                                                                                      ^
    <scratch space>:55:1: note: expanded from here
    PKPaymentNetworkElo
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:211:1: note: 'TPSPaymentNetworkElo' declared here
    TPSPaymentNetworkDefine(Elo, @"elo");
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
    #define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
                                                                         ^
    <scratch space>:30:1: note: expanded from here
    TPSPaymentNetworkElo
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:242:5: error: use of undeclared identifier 'PKPaymentNetworkMada'; did you mean 'TPSPaymentNetworkMada'?
        TPSPaymentNetworkConditionalMapping(Mada, 12.1.1);
        ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
    #define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
                                                                                                                                      ^
    <scratch space>:63:1: note: expanded from here
    PKPaymentNetworkMada
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:215:1: note: 'TPSPaymentNetworkMada' declared here
    TPSPaymentNetworkDefine(Mada, @"mada");
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
    #define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
                                                                         ^
    <scratch space>:34:1: note: expanded from here
    TPSPaymentNetworkMada
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:722:42: warning: 'startPollingSourceWithId:clientSecret:timeout:completion:' is deprecated: You should poll your own backend to update based on source status change webhook events it may receive. [-Wdeprecated-declarations]
                            [stripeAPIClient startPollingSourceWithId:sourceID clientSecret:clientSecret timeout:10 completion:^(STPSource *source, NSError *error) {
                                             ^
    In module 'Stripe' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:11:
    /Users/ipatel/Desktop/flutter_app_strip/ios/Pods/Stripe/Stripe/PublicHeaders/STPAPIClient.h:347:243: note: 'startPollingSourceWithId:clientSecret:timeout:completion:' has been explicitly marked deprecated here
    - (void)startPollingSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret timeout:(NSTimeInterval)timeout completion:(STPSourceCompletionBlock)completion NS_EXTENSION_UNAVAILABLE("Source polling is not available in extensions") DEPRECATED_MSG_ATTRIBUTE("You should poll your own backend to update based on source status change webhook events it may receive.");
                                                                                                                                                                                                                                                      ^
    In module 'Foundation' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:9:
    In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/AvailabilityMacros.h:179:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
                #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                                   ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1635:22: warning: 'supplementarySubLocality' is only available on iOS 9.2 or newer [-Wunguarded-availability]
        if (inputContact.supplementarySubLocality) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~
    In module 'PassKit' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h:30:58: note: 'supplementarySubLocality' has been explicitly marked partial here
    @property (nonatomic, retain, nullable) NSString        *supplementarySubLocality API_DEPRECATED("Use subLocality and subAdministrativeArea on -postalAddress instead", ios(9.2, 10.3), watchos(3.0, 3.2));
                                                             ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1635:22: note: enclose 'supplementarySubLocality' in an @available check to silence this warning
        if (inputContact.supplementarySubLocality) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1636:47: warning: 'supplementarySubLocality' is only available on iOS 9.2 or newer [-Wunguarded-availability]
            [contactDetails setValue:inputContact.supplementarySubLocality forKey:@"supplementarySubLocality"];
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    In module 'PassKit' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.h:10:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h:30:58: note: 'supplementarySubLocality' has been explicitly marked partial here
    @property (nonatomic, retain, nullable) NSString        *supplementarySubLocality API_DEPRECATED("Use subLocality and subAdministrativeArea on -postalAddress instead", ios(9.2, 10.3), watchos(3.0, 3.2));
                                                             ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.0/ios/Classes/TPSStripeManager.m:1636:47: note: enclose 'supplementarySubLocality' in an @available check to silence this warning
            [contactDetails setValue:inputContact.supplementarySubLocality forKey:@"supplementarySubLocality"];
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    3 warnings and 2 errors generated.
    note: Using new build systemnote: Planning buildnote: Constructing build description

@jonasbark
Copy link
Owner

please attach that project here so I can debug that

jonasbark pushed a commit that referenced this issue Oct 17, 2019
- update deployment target to 10.0 (#60)
@iPatel007
Copy link
Author

Sure, You can find the code

https://github.com/iPatel007/flutter_app_strip

@jonasbark
Copy link
Owner

Works fine here. Try pod repo update and remove your Podfile.lock before.

@jonasbark
Copy link
Owner

... and try version 1.0.1

@iPatel007
Copy link
Author

I tried from yesterday, but not able to to add dependencies

stripe_payment: ^1.0.2

in fresh project. Always get error in iOS.




Xcode's output:
↳
    === BUILD TARGET stripe_payment OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:238:5: error: use of undeclared identifier 'PKPaymentNetworkElo'; did you mean 'TPSPaymentNetworkElo'?
        TPSPaymentNetworkConditionalMapping(Elo, 12.1.1);
        ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
    #define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
                                                                                                                                      ^
    <scratch space>:55:1: note: expanded from here
    PKPaymentNetworkElo
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:211:1: note: 'TPSPaymentNetworkElo' declared here
    TPSPaymentNetworkDefine(Elo, @"elo");
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
    #define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
                                                                         ^
    <scratch space>:30:1: note: expanded from here
    TPSPaymentNetworkElo
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:242:5: error: use of undeclared identifier 'PKPaymentNetworkMada'; did you mean 'TPSPaymentNetworkMada'?
        TPSPaymentNetworkConditionalMapping(Mada, 12.1.1);
        ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:231:131: note: expanded from macro 'TPSPaymentNetworkConditionalMapping'
    #define TPSPaymentNetworkConditionalMapping(Key, iOSVersion) { if (@available(iOS iOSVersion, *)) { tmp[TPSPaymentNetwork##Key] = PKPaymentNetwork ## Key; }}
                                                                                                                                      ^
    <scratch space>:63:1: note: expanded from here
    PKPaymentNetworkMada
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:215:1: note: 'TPSPaymentNetworkMada' declared here
    TPSPaymentNetworkDefine(Mada, @"mada");
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:204:70: note: expanded from macro 'TPSPaymentNetworkDefine'
    #define TPSPaymentNetworkDefine(Key, string) TPSPaymentNetwork const TPSPaymentNetwork ## Key = string
                                                                         ^
    <scratch space>:34:1: note: expanded from here
    TPSPaymentNetworkMada
    ^
    /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.m:722:42: warning: 'startPollingSourceWithId:clientSecret:timeout:completion:' is deprecated: You should poll your own backend to update based on source status change webhook events it may receive. [-Wdeprecated-declarations]
                            [stripeAPIClient startPollingSourceWithId:sourceID clientSecret:clientSecret timeout:10 completion:^(STPSource *source, NSError *error) {
                                             ^
    In module 'Stripe' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.h:11:
    /Users/ipatel/Desktop/new_payment/ios/Pods/Stripe/Stripe/PublicHeaders/STPAPIClient.h:347:243: note: 'startPollingSourceWithId:clientSecret:timeout:completion:' has been explicitly marked deprecated here
    - (void)startPollingSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret timeout:(NSTimeInterval)timeout completion:(STPSourceCompletionBlock)completion NS_EXTENSION_UNAVAILABLE("Source polling is not available in extensions") DEPRECATED_MSG_ATTRIBUTE("You should poll your own backend to update based on source status change webhook events it may receive.");
                                                                                                                                                                                                                                                      ^
    In module 'Foundation' imported from /Users/ipatel/Documents/Amit/FlutterSetup/flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-1.0.2/ios/Classes/TPSStripeManager.h:9:
    In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/AvailabilityMacros.h:179:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
                #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                                   ^
    1 warning and 2 errors generated.

May be issue in iOS12

tan-nad pushed a commit to tan-nad/stripe_payment that referenced this issue Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants