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

Purchases build fail in Xcode 14 #98

Closed
erf opened this issue Sep 22, 2020 · 1 comment
Closed

Purchases build fail in Xcode 14 #98

erf opened this issue Sep 22, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@erf
Copy link

erf commented Sep 22, 2020

Common project specific issues

Describe the bug

Build fails on Xcode 14 with the following error Undefined symbol: _OBJC_CLASS_$_RCPurchases.

Full build output:

Ld /Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/purchases_flutter/purchases_flutter.framework/purchases_flutter normal (in target 'purchases_flutter' from project 'Pods')
cd /Users/erlend/projects/cashplan/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -L/Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/purchases_flutter -F/Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/purchases_flutter -F/Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/Purchases -F/Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/PurchasesHybridCommon -F/Users/erlend/projects/cashplan/ios/Pods/../Flutter -filelist /Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/purchases_flutter.build/Objects-normal/arm64/purchases_flutter.LinkFileList -install_name @rpath/purchases_flutter.framework/purchases_flutter -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/purchases_flutter.build/Objects-normal/arm64/purchases_flutter_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -framework Flutter -framework Foundation -framework PurchasesHybridCommon -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/purchases_flutter.build/Objects-normal/arm64/purchases_flutter_dependency_info.dat -o /Users/erlend/Library/Developer/Xcode/DerivedData/Runner-cbzjfytjhmdquzblntcpeffmlxvi/Build/Products/Debug-iphoneos/purchases_flutter/purchases_flutter.framework/purchases_flutter

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_RCPurchases", referenced from:
      objc-class-ref in PurchasesFlutterPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  1. Environment
    1. Platform: iOS
    2. SDK version: 1.2.1
    3. OS version: 14.0
    4. XCode/Android Studio version: Xcode 14

Additional context

This is my first time trying to set up Revenuecat.

I run on a macbook pro on a iphone 7 device.

@erf erf added the bug Something isn't working label Sep 22, 2020
@erf
Copy link
Author

erf commented Sep 22, 2020

I did a flutter build . which upgraded the project with some settings.
I also upgraded to minimum iOS version 12 as recommended, deleted ios/Flutter/Flutter.framework and then reinstalled using flutter pub get and did a manual pod install in the ios folder.

I build and run ok now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant