Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230057

Deviceready did not fire

$
0
0

Hi,

when building for iOS i see the following in my logs:

[12:37:49]  console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
            mode.
[12:37:53]  console.log: deviceready has not fired after 5 seconds.
[12:37:53]  console.log: Channel not fired: onCordovaInfoReady
[12:37:53]  console.log: Channel not fired: onFileSystemPathsReady
[12:37:53]  console.warn: Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an
            inconsistent state. Try removing plugins from plugins/ and reinstalling them.

On android everything is fine. The problem shows in the iOS Simulator (with iOS 9.3 or 10) and on real devices.
I tried all suggestions found in this forum (removing and adding the ios platform, changing the Content-Security-Policy in index.html, ...) but I am unable to create a working release build on iOS.
And without the deviceready event the plugins are not working, and so does my App.

Here are some informations about my system:

global packages:

    @ionic/cli-utils : 1.2.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.2.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.2.1
    @ionic/cli-plugin-ionic-angular : 1.2.0
    Cordova Platforms               : android 6.1.2 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.1.1

System:

    Node       : v7.7.3
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.2 Build version 8E2002
    ios-deploy : 1.9.1
    ios-sim    : 5.0.13

the used plugins:

> cordova plugin ls
✔ Running command - done!
com.googlemaps.ios 2.2.0 "Google Maps SDK for iOS"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-opener2 2.0.16 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googlemaps 1.4.0 "phonegap-googlemaps-plugin"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-nativestorage 2.2.2 "NativeStorage"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-ext 0.10.4 "Cordova sqlite storage plugin with extras"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Another (maybe related issue): when building using the Ionic Cloud Services (ionic package build ios) the build fails with error 65

duplicate symbol _sqlite3_prepare_v2 in:
    /Users/package/Library/Developer/Xcode/DerivedData/WastApp-euejyxfqalnonrbwpeekvozszrlu/Build/Intermediates/ArchiveIntermediates/WastApp/IntermediateBuildFilesPath/WastApp.build/Debug-iphoneos/WastApp.build/Objects-normal/arm64/sqlite3-1EA2915C0E061965.o
    /Users/package/Library/Developer/Xcode/DerivedData/WastApp-euejyxfqalnonrbwpeekvozszrlu/Build/Intermediates/ArchiveIntermediates/WastApp/IntermediateBuildFilesPath/WastApp.build/Debug-iphoneos/WastApp.build/Objects-normal/arm64/sqlite3-9759FEAE7800AB80.o
duplicate symbol _sqlite3_create_module_v2 in:
    /Users/package/Library/Developer/Xcode/DerivedData/WastApp-euejyxfqalnonrbwpeekvozszrlu/Build/Intermediates/ArchiveIntermediates/WastApp/IntermediateBuildFilesPath/WastApp.build/Debug-iphoneos/WastApp.build/Objects-normal/arm64/sqlite3-1EA2915C0E061965.o
    /Users/package/Library/Developer/Xcode/DerivedData/WastApp-euejyxfqalnonrbwpeekvozszrlu/Build/Intermediates/ArchiveIntermediates/WastApp/IntermediateBuildFilesPath/WastApp.build/Debug-iphoneos/WastApp.build/Objects-normal/arm64/sqlite3-9759FEAE7800AB80.o
ld: 212 duplicate symbols for architecture arm64

** ARCHIVE FAILED **


The following build commands failed:
	Ld /Users/package/Library/Developer/Xcode/DerivedData/WastApp-euejyxfqalnonrbwpeekvozszrlu/Build/Intermediates/ArchiveIntermediates/WastApp/IntermediateBuildFilesPath/WastApp.build/Debug-iphoneos/WastApp.build/Objects-normal/armv7/WastApp normal armv7
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-312bdc3f-4/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,WastApp.xcworkspace,-scheme,WastApp,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,WastApp.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-312bdc3f-4/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-312bdc3f-4/cordova/platforms/ios/build/sharedpch

Locally it builds fine, but with the mentioned problem that the deviceready event does not fire.

Any ideas?


Viewing all articles
Browse latest Browse all 230057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>