JackAppDev / flutter_iap

Flutter iap plugin
MIT License
100 stars 14 forks source link

podspec should specify a spec.swift_version #7

Open xster opened 6 years ago

xster commented 6 years ago

Otherwise, installing into objective-c projects might make wild version guesses and not build.

alamboley commented 6 years ago

Hey, got the problem here The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor. How did you fix it?

alamboley commented 6 years ago

I fixed it this way: Press the + button in Build Settings and select Add User-Defined Setting. Then in the new row created add SWIFT_VERSION as key and 3.2 as value.

JackAppDev commented 6 years ago

I added something to the podspec for the plugin. Let me know if that fixes it.

alamboley commented 6 years ago

@JackAppDev having this issue now:

Could not build the precompiled application for the device. === BUILD TARGET firebase_database OF PROJECT Pods WITH CONFIGURATION Debug ===

:1:9: note: in file included from :1: #import "flutter_iap-umbrella.h" ^ /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/flutter_iap-umbrella.h:13:9: note: in file included from /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/flutter_iap-umbrella.h:13: #import "FlutterIapPlugin.h" ^ /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/FlutterIapPlugin.h:1:9: error: 'Flutter/Flutter.h' file not found #import ^ :0: error: could not build Objective-C module 'flutter_iap' :1:9: note: in file included from :1: #import "flutter_iap-umbrella.h" ^ /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/flutter_iap-umbrella.h:13:9: note: in file included from /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/flutter_iap-umbrella.h:13: #import "FlutterIapPlugin.h" ^ /Users/aymeric/Documents/Workspace/Flutter/InstaBoost/insta_boost/ios/Pods/Headers/Public/flutter_iap/FlutterIapPlugin.h:1:9: error: 'Flutter/Flutter.h' file not found #import ^ :0: error: could not build Objective-C module 'flutter_iap' Error launching application on Aymeric’s iPhone 6S.