zrg-team/flutter_redux

installation instructions?

bartonhammond opened this issue · 1 comments

Looks like a interesting project but I'm not sure how to get this working. Here is log from trying to launch...

Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.                                           11.4s
Failed to build iOS app
Error output from Xcode build:
↳
2019-01-05 10:28:16.362 xcodebuild[87480:8151900]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14460.26/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0013:'CpResource flutter_assets':P12>
Object:   <PBXTargetBuildContext: 0x7fce79c902a0>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fce7a104bd0>{number = 19, name = (null)}
Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
/Users/bartonhammond/projects/flutter_redux/ios/Pods/GoogleUtilities/GoogleUtilities/Network/GULNetworkURLSession.m:55:3: warning: 'NSURLSession' is only available on iOS 7.0 or newer [-Wunguarded-availability]
NSURLSession *__weak _Nullable _URLSession;
^
In module 'Foundation' imported from /Users/bartonhammond/projects/flutter_redux/ios/Pods/GoogleUtilities/GoogleUtilities/Network/GULNetworkURLSession.m:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:123:12: note: 'NSURLSession' has been explicitly marked partial here
@interface NSURLSession : NSObject
^
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/GoogleUtilities/GoogleUtilities/Network/GULNetworkURLSession.m:17:
/Users/bartonhammond/projects/flutter_redux/ios/Pods/GoogleUtilities/GoogleUtilities/Network/Private/GULNetworkURLSession.h:33:12: note: annotate 'GULNetworkURLSession' with an availability attribute to silence this warning
@interface GULNetworkURLSession : NSObject
^
1 warning generated.
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: warning: variable 'originRect' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26: note: uninitialized use occurs here
atSource:originRect];
^~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:7: note: remove the 'if' if its condition is always true
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26: note: uninitialized use occurs here
atSource:originRect];
^~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: note: remove the '&&' if its condition is always true
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26: note: uninitialized use occurs here
atSource:originRect];
^~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: note: remove the '&&' if its condition is always true
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26: note: uninitialized use occurs here
atSource:originRect];
^~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11: note: remove the '&&' if its condition is always true
if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
^~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:32:7: note: variable 'originRect' is declared here
CGRect originRect;
^
4 warnings generated.
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:10:19: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
@property(strong) SFSafariViewController *safari;
^
In module 'SafariServices' imported from /Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been explicitly marked partial here
@interface SFSafariViewController : UIViewController
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:9:12: note: annotate 'FLTUrlLaunchSession' with an availability attribute to silence this warning
@interface FLTUrlLaunchSession : NSObject <SFSafariViewControllerDelegate>
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:29:31: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
- (void)safariViewController:(SFSafariViewController *)controller
^
In module 'SafariServices' imported from /Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been explicitly marked partial here
@interface SFSafariViewController : UIViewController
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:29:1: note: annotate 'safariViewController:didCompleteInitialLoad:' with an availability attribute to silence this warning
- (void)safariViewController:(SFSafariViewController *)controller
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:41:40: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
^
In module 'SafariServices' imported from /Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been explicitly marked partial here
@interface SFSafariViewController : UIViewController
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:41:1: note: annotate 'safariViewControllerDidFinish:' with an availability attribute to silence this warning
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
^
API_AVAILABLE(ios(9.0))
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:23:17: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
_safari = [[SFSafariViewController alloc] initWithURL:url];
^~~~~~~~~~~~~~~~~~~~~~
In module 'SafariServices' imported from /Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been explicitly marked partial here
@interface SFSafariViewController : UIViewController
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:23:17: note: enclose 'SFSafariViewController' in an @available check to silence this warning
_safari = [[SFSafariViewController alloc] initWithURL:url];
^~~~~~~~~~~~~~~~~~~~~~
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:103:18: warning: 'openURL:options:completionHandler:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
[application openURL:url
^~~~~~~~~~~
In module 'UIKit' imported from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Target Support Files/url_launcher/url_launcher-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:1: note: 'openURL:options:completionHandler:' has been explicitly marked partial here
- (void)openURL:(NSURL*)url options:(NSDictionary<UIApplicationOpenExternalURLOptionsKey, id> *)options completionHandler:(void (^ __nullable)(BOOL success))completion NS_AVAILABLE_IOS(10_0) NS_EXTENSION_UNAVAILABLE_IOS("");
^
/Users/bartonhammond/flutter/.pub-cache/git/plugins-c989956d1cd15bd2a894a42aa1a8e212f29eb8ab/packages/url_launcher/ios/Classes/UrlLauncherPlugin.m:103:18: note: enclose 'openURL:options:completionHandler:' in an @available check to silence this warning
[application openURL:url
^~~~~~~~~~~
5 warnings generated.
=== BUILD TARGET firebase_admob OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:91:15: warning: 'birthday' is deprecated [-Wdeprecated-declarations]
request.birthday =
^
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:5:
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.h:5:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAds.h:28:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GADBannerView.h:14:
/Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GADRequest.h:112:55: note: 'birthday' has been explicitly marked deprecated here
@property(nonatomic, copy, nullable) NSDate *birthday GAD_DEPRECATED_ATTRIBUTE;
^
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:5:
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.h:5:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAds.h:22:
/Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAdsDefines.h:25:49: note: expanded from macro 'GAD_DEPRECATED_ATTRIBUTE'
#define GAD_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:106:19: warning: 'gender' is deprecated [-Wdeprecated-declarations]
request.gender = genderValue;
^
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:5:
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.h:5:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAds.h:28:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GADBannerView.h:14:
/Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GADRequest.h:109:47: note: 'gender' has been explicitly marked deprecated here
@property(nonatomic, assign) GADGender gender GAD_DEPRECATED_ATTRIBUTE;
^
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.m:5:
In file included from /Users/bartonhammond/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.7.0/ios/Classes/FLTRequestFactory.h:5:
In file included from /Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAds.h:22:
/Users/bartonhammond/projects/flutter_redux/ios/Pods/Headers/Public/Google-Mobile-Ads-SDK/GoogleMobileAds/GoogleMobileAdsDefines.h:25:49: note: expanded from macro 'GAD_DEPRECATED_ATTRIBUTE'
#define GAD_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
2 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/bartonhammond/projects/flutter_redux/ios/Runner/GoogleService-Info.plist:0: error: reading data: The file “GoogleService-Info.plist” couldn’t be opened because there is no such file.
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)

@bartonhammond
Look like you missing firebase's project files. I updated readme, please check

Install

  • Step 1 : flutter packages get
  • Step 2 : Create a firebase project at https://firebase.google.com/
  • Step 3 : Put firebase's project file into android/app/google-services.json and ios/Runner/GoogleService-Info.plist
  • Step 4 : Correct your admob APPLICATION_ID in android/app/src/AndroidManifest.xml

Or : checkout branch starter for easier setup