Nativescript-plugin-firebase: iOS app closing right after launch without errors (Xcode emulator iphone X ios 11.2)

Created on 17 Jan 2018  ยท  7Comments  ยท  Source: EddyVerbruggen/nativescript-plugin-firebase

After installing nativescript-plugin-firebase and hooking it up in the angular code, the iOS app keeps closing (or crashing) immediately after the app starts. It doesn't show any error when the apps starts or when refreshing by a code change. It does show ALOT of errors when running tns run ios after a fresh tns platform add ios (see below). However the build still completes successfully, yet the app won't start:

`Searching for devices...
Executing before-liveSync hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-liveSync/nativescript-angular-sync.js
Executing before-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-prepare/nativescript-dev-sass.js
Found peer node-sass
Executing before-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
Executing before-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-prepare/nativescript-plugin-firebase.js
Preparing project...
Successfully prepared plugin nativescript-angular for ios.
Successfully prepared plugin nativescript-plugin-firebase for ios.
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin nativescript-intl for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Installing pods...
Analyzing dependencies
Downloading dependencies
Installing Bolts (1.9.0)
Installing BoringSSL (9.1)
Installing FBSDKCoreKit (4.29.0)
Installing FBSDKLoginKit (4.29.0)
Installing Firebase (4.8.0)
Installing FirebaseABTesting (1.0.0)
Installing FirebaseAnalytics (4.0.5)
Installing FirebaseAuth (4.4.1)
Installing FirebaseCore (4.0.13)
Installing FirebaseCrash (2.0.2)
Installing FirebaseDynamicLinks (2.3.1)
Installing FirebaseFirestore (0.9.4)
Installing FirebaseInstanceID (2.0.8)
Installing FirebaseInvites (2.0.2)
Installing FirebaseMessaging (2.0.8)
Installing FirebaseRemoteConfig (2.1.0)
Installing FirebaseStorage (2.1.1)
Installing GTMOAuth2 (1.1.6)
Installing GTMSessionFetcher (1.1.12)
Installing Google-Mobile-Ads-SDK (7.27.0)
Installing GoogleAPIClientForREST (1.3.2)
Installing GoogleSignIn (4.1.1)
Installing GoogleToolboxForMac (2.1.3)
Installing Protobuf (3.5.0)
Installing gRPC (1.8.0)
Installing gRPC-Core (1.8.0)
Installing gRPC-ProtoRPC (1.8.0)
Installing gRPC-RxLibrary (1.8.0)
Installing leveldb-library (1.20)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use watchbucket.xcworkspace for this project from now on.
Sending stats
Pod installation complete! There are 12 dependencies from the Podfile and 30 total pods installed.
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/after-prepare/firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/after-prepare/firebase-copy-google-services.js
Copy /Users/timowestland/Documents/Projects/Code/watchbucket/app/App_Resources/Android/google-services.json to /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/android/google-services.json.
Executing after-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/after-prepare/nativescript-dev-sass.js
All SASS source files removed from app package
Executing after-prepare hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/after-prepare/nativescript-plugin-firebase.js
Building project...
Xcode build...
ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
/Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:140:36: warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer
[-Wunguarded-availability]
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
^~~~~~~~~~~
In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:534:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been explicitly
marked partial here
UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_AVAILABLE_IOS(9_0); // value is an NSString containing the bundle ID of the originating application
^
/Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:140:36: note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
^~~~~~~~~~~
/Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:141:36: warning: 'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
^~~~~~~~~~
In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:535:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been explicitly marked
partial here
UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_AVAILABLE_IOS(9_0); // value is a property-list typed object corresponding to what the originating application passed in UIDocumentInteractionController's annotatio...
^
/Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:141:36: note: enclose 'UIApplicationOpenURLOptionsAnnotationKey' in an @available check to silence this warning
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
^
~~~~~~~~~
/Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:274:42: warning: 'openURL:options:completionHandler:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
^~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:134:1: note: 'openURL:options:completionHandler:' has been explicitly marked partial
here

  • (void)openURL:(NSURL*)url options:(NSDictionary *)options completionHandler:(void (^ __nullable)(BOOL success))completion NS_AVAILABLE_IOS(10_0) NS_EXTENSION_UNAVAILABLE_IOS("");
    ^
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:274:42: note: enclose 'openURL:options:completionHandler:' in an @available check to silence this warning
    [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
    ^~~~~~~~~~~~~
    3 warnings generated.
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:140:36: warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer
    [-Wunguarded-availability]
    sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
    ^
    ~~~~~~~~~~
    In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:534:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been explicitly
    marked partial here
    UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_AVAILABLE_IOS(9_0); // value is an NSString containing the bundle ID of the originating application
    ^
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:140:36: note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning
    sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
    ^
    ~~~~~~~~~~
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:141:36: warning: 'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
    annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
    ^
    ~~~~~~~~~
    In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:535:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been explicitly marked
    partial here
    UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_AVAILABLE_IOS(9_0); // value is a property-list typed object corresponding to what the originating application passed in UIDocumentInteractionController's annotatio...
    ^
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:141:36: note: enclose 'UIApplicationOpenURLOptionsAnnotationKey' in an @available check to silence this warning
    annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
    ^~~~~~~~~~
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:274:42: warning: 'openURL:options:completionHandler:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
    ^
    ~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:134:1: note: 'openURL:options:completionHandler:' has been explicitly marked partial
    here
  • (void)openURL:(NSURL*)url options:(NSDictionary *)options completionHandler:(void (^ __nullable)(BOOL success))completion NS_AVAILABLE_IOS(10_0) NS_EXTENSION_UNAVAILABLE_IOS("");
    ^
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m:274:42: note: enclose 'openURL:options:completionHandler:' in an @available check to silence this warning
    [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
    ^~~~~~~~~~~~~
    3 warnings generated.
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
    === BUILD TARGET gRPC-Core OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET gRPC-Core OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/gRPC/src/objective-c/GRPCClient/private/GRPCChannel.m:208:22: warning: variable 'host_slice' may be uninitialized when used here [-Wconditional-uninitialized]
    grpc_slice_unref(host_slice);
    ^
    ~~~
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/gRPC/src/objective-c/GRPCClient/private/GRPCChannel.m:191:3: note: variable 'host_slice' is declared here
    grpc_slice host_slice;
    ^
    1 warning generated.
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/gRPC/src/objective-c/GRPCClient/private/GRPCChannel.m:208:22: warning: variable 'host_slice' may be uninitialized when used here [-Wconditional-uninitialized]
    grpc_slice_unref(host_slice);
    ^~~~~~
    /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/Pods/gRPC/src/objective-c/GRPCClient/private/GRPCChannel.m:191:3: note: variable 'host_slice' is declared here
    grpc_slice host_slice;
    ^
    1 warning generated.
    === BUILD TARGET gRPC OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET gRPC OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET gRPC-ProtoRPC OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Protobuf'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET gRPC-ProtoRPC OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Protobuf'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET watchbucket OF PROJECT watchbucket WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKLoginKit'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMOAuth2'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GoogleAPIClientForREST'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Protobuf'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-ProtoRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/leveldb-library'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Bolts'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/BoringSSL'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/FBSDKLoginKit'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMOAuth2'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GoogleAPIClientForREST'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/Protobuf'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-Core'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-ProtoRPC'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/gRPC-RxLibrary'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/leveldb-library'
    ld: warning: directory not found for option '-F/Users/timowestland/Library/Developer/Xcode/DerivedData/watchbucket-gbxvhhwvkxjbbsdwkcayaxcbeqrr/Build/Products/Debug-iphonesimulator/nanopb'
    === BUILD TARGET watchbucket OF PROJECT watchbucket WITH CONFIGURATION Debug ===
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
    note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
    note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
    while processing /Users/timowestland/Documents/Projects/Code/watchbucket/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
    warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
    Project successfully built.
    Installing...
    Successfully installed on device with identifier '0716497F-09E8-4193-BEB4-13E6487DE4A6'.
    Successfully transferred all files.
    Refreshing application...
    Successfully synced application org.nativescript.watchbucket on device 0716497F-09E8-4193-BEB4-13E6487DE4A6.
    Executing before-watch hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-watch/nativescript-dev-sass.js
    Found peer node-sass
    Executing before-watch hook from /Users/timowestland/Documents/Projects/Code/watchbucket/hooks/before-watch/nativescript-dev-typescript.js
    Found peer TypeScript 2.4.2
    3:01:15 PM - Compilation complete. Watching for file changes.
    `

firebase.nativescript.json:
{
"using_ios": true,
"using_android": true,
"firestore": true,
"realtimedb": false,
"remote_config": true,
"messaging": true,
"crash_reporting": true,
"storage": true,
"facebook_auth": true,
"google_auth": true,
"admob": true,
"invites": true
}

package.json:
"nativescript": {
"id": "org.nativescript.watchbucket",
"tns-android": {
"version": "3.4.1"
},
"tns-ios": {
"version": "3.4.1"
}
},
"dependencies": {
"angular/animations": "~5.1.0",
"angular/common": "~5.1.0",
"angular/compiler": "~5.1.0",
"angular/core": "~5.1.0",
"angular/forms": "~5.1.0",
"angular/http": "~5.1.0",
"angular/platform-browser": "~5.1.0",
"angular/platform-browser-dynamic": "~5.1.0",
"angular/router": "~5.1.0",
"allow-publish": "^1.0.4",
"nativescript-angular": "^5.1.0",
"nativescript-plugin-firebase": "^5.1.3",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.5.2",
"tns-core-modules": "^3.4.0",
"zone.js": "~0.8.2"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11",
"nativescript-dev-sass": "^1.3.5",
"nativescript-dev-typescript": "~0.6.0",
"typescript": "~2.4.2"
}

tns info:
โ”‚ Component โ”‚ Current version โ”‚ Latest version โ”‚ Information โ”‚
โ”‚ nativescript โ”‚ 3.4.1 โ”‚ 3.4.1 โ”‚ Up to date โ”‚
โ”‚ tns-core-modules โ”‚ 3.4.0 โ”‚ 3.4.0 โ”‚ Up to date โ”‚
โ”‚ tns-android โ”‚ 3.4.1 โ”‚ 3.4.1 โ”‚ Up to date โ”‚
โ”‚ tns-ios โ”‚ 3.4.1 โ”‚ 3.4.1 โ”‚ Up to date โ”‚

I've been searching for this issue all they yesterday but didn't find any solutions. I've also tried all the know issue solutions in the Readme. Anybody knows whats going on?

Full code can be found here https://github.com/TimoWestland/watchbucket/tree/feature/auth

Most helpful comment

Me to, I have tried both blank installation from SideKick and also the hello world that is showed in the start video. The app works before installing the firebase plugin right after it show upp with this warnings of "directory not found" and so on. This happens even before I add the require plugin string

Any ideas?

All 7 comments

I can't find where you require the plugin. I expected it in main.ts before the call to start the app.

I can't find where you require the plugin. I expected it in main.ts before the call to start the app.

Also, please remove any unneeded features (like Invites) from https://github.com/TimoWestland/watchbucket/blob/feature/auth/firebase.nativescript.json, then remove the platforms/ios folder and build again.

Hi Eddy,

Thanks for your quick reply.
I had removed all firebase implementation code from my project because I was testing if that would fix the problem (it didn't).

I've just scaffolded a new clean TNS project and the error also occurs there before adding this plugin, so the error is probably with my firebase installation and not with your plugin. So you can close this issue. Thanks for the reply anyway :)

Unfortunately, I am getting the exact same issue as this. A fresh app, plugin install and initialised... nothing else going on. The App launches then straight after the startup screen crashes with no errors on iOS simulator. I have disabled all firebase features. I too get a lot of errors during build but the app installs.

Me to, I have tried both blank installation from SideKick and also the hello world that is showed in the start video. The app works before installing the firebase plugin right after it show upp with this warnings of "directory not found" and so on. This happens even before I add the require plugin string

Any ideas?

I've installed Firebase authentication before and it was working fine but lastly, I installed Firebase/Storage (Steps using rnFirebase documentation) and now the app is installing with BUILD SUCCEED but not launching.

Unfortunately, I'm facing similar problems here.

Was this page helpful?
0 / 5 - 0 ratings