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

property 'identifier' not found on object of type 'SKProductDiscount *' #10

Closed
JonasJW opened this issue Nov 1, 2019 · 8 comments
Closed

Comments

@JonasJW
Copy link

JonasJW commented Nov 1, 2019

I get this error when running on an iOS Simulator

Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase')
    warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase')
    warning: Capabilities for Runner may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'Runner')
    /Users/jonas/Projects/ProjectFit/mobile/training_hub_flutter/ios/Pods/Purchases/Purchases/RCPromotionalOffer.m:21:48: error: property 'identifier' not found on object of type 'SKProductDiscount *'
            self.offerIdentifier = productDiscount.identifier;
                                                   ^
    1 error generated.
    note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 8.
@vegaro
Copy link
Contributor

vegaro commented Nov 1, 2019

What version of the simulator are you running?

@JonasJW
Copy link
Author

JonasJW commented Nov 1, 2019

iPhone 8, iOS Version 12.1 and I'm using purchases_flutter: ^0.3.2

@JonasJW
Copy link
Author

JonasJW commented Nov 7, 2019

Anything I can try here? I would really like to keep using revenuecat with flutter...

@vegaro
Copy link
Contributor

vegaro commented Nov 8, 2019

Hey @JonasJW sorry I misread the output first time. Is it possible you're running an older version of XCode?

@JonasJW
Copy link
Author

JonasJW commented Nov 9, 2019

Thank you! Updating XCode and afterwards reinstalling cocoa pods with sudo gem install cocoapods seems to have fixed it.

@JonasJW JonasJW closed this as completed Nov 9, 2019
@wmonecke
Copy link

I have this error as well.
@JonasJW Do you know by any chance what XCode version you had when you found this issue? I am on XCode 10.1 and a bit afraid to upgrade.

@JonasJW
Copy link
Author

JonasJW commented Dec 27, 2019

@wmonecke Sorry, I don't know. I'm currently on 11.2.1 and it seems to work fine but I don't know my when I previously updated and what version I had before

@vegaro
Copy link
Contributor

vegaro commented Jan 2, 2020

@wmonecke you should be using XCode 10.2+

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

3 participants