IOS build failing in IONIC - ios

I am getting “Error: doc.find is not a function” error when IONIC is trying to do IOS build.
IONIC is able to build Android successfully. Only issue is with IOS.
Ionic Info Output -
Cordova CLI - 7.0.1
Ionic CLI Version - 2.1.18
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v4.4.4
Xcode version: Not installed
Any help is appreciated.

Related

Safari cannot open the page because the address is invalid when I do a google login using firebase and ionic v3

I’m facing a problem when I try to use the FireBase Google login.
When I log in to Google successfully and when it returns back on App iOS, I get this error:
Safari cannot open the page because the address is invalid msg
I do not know where the problem could be, because in Android, it works.
My system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.9.2
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 3.2.0
ios-deploy version: 2.0.0
ios-sim version: 3.0.0
OS: macOS
Node Version: v6.9.4
Xcode version: Xcode 10.1 Build version 10B61
i'm using this plugin (github.com/EddyVerbruggen/cordova-plugin-googleplus) and i think the new version... its fixed.

iOS build failed after adding cordova fabric plugin

I added fabric plugin in my ionic 3 app. It's working in android but for iOS it has a problem.
When running ionic build ios --prod or ionic build ios I am getting following error:
/Users/abc/Library/Developer/Xcode/DerivedData/MyApp-
fgpvbdhjneqliicfyhoiuvrrhbfs/Build/Intermediates/MyApp.build/Debug-
iphonesimulator/MyApp.build/Script-FE794D9BFDB14C30B9E39200.sh: line 2:
/Users/abc/Desktop/NS: No such file or directory
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Fabric.io:\ Crashlytics
/Users/abc/Library/Developer/Xcode/DerivedData/MyApp-
fgpvbdhjneqliicfyhoiuvrrhbfs/Build/Intermediates/MyApp.build/Debug-
iphonesimulator/MyApp.build/Script-FE794D9BFDB14C30B9E39200.sh
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -
xcconfig,/Users/abc/Desktop/NS H iOS 2/platforms/ios/cordova/build-
debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-
configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
Simulator,name=iPhone
5s,build,CONFIGURATION_BUILD_DIR=/Users/abc/Desktop/NS H iOS
2/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/abc/Desktop/NS H
iOS 2/platforms/ios/build/sharedpch
Ionic info:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.10.2
Xcode version: Xcode 8.3.1 Build version 8E1000a
Please help.
Have you installed Fabric with CocoaPods? Here is the doc: https://fabric.io/kits/ios/crashlytics/install (Select Objective C).
This issue seems to be similar to this one that has been solved: Integrate Fabric/Crashlytics via CocoaPods
I hope It helps you.

cordova plugins delayed execution on iOS

I am building an Ionic hybrid app and I have 4 plugins installed.
cordova-plugin-screen-orientation
cordova-plugin-app-version
cordova-plugin-geolocation
cordova-plugin-contacts
All of them work as expected on Android however, on iOS, whenever I trigger the plugin (usually with a button click), nothing happens, if I double click the app (or if I minimize and open up the app again), the plugins has executed and is displaying what I see on Android.
I have tried wrapping the call to the plugin in a $timeout but that didn't do anything different.
Any help would be appreciated as I have search all over hell on this and can't seem to find the issue.
Here is my apple setup:
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: MacOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.3.2 Build version 8E002

Cordova push notification service not working in IOS device

i am wondering why cordova push plugin is not working in IOS device.IOS ver 9.3
I am using ionic push services.
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.9.0
Xcode version: Xcode 7.3 Build version 7D175
It works on emulator and web but not in the device. It throws me this error
2016-04-11 04:51:52.385 example[1304:814527] Ionic Core: plugins are ready
2016-04-11 04:51:52.386 example[1304:814527] WARN: hideKeyboardAccessoryBar has been removed until a method is found that doesn't get rejected from the App Store.
2016-04-11 04:51:52.386 example[1304:814527] Ionic Push: register
2016-04-11 04:51:52.386 example[1304:814527] ERROR: Ionic Push (dev): error connecting development push service.

Ionic build ios fails after installing cordova push plugin

my ionic build ios fails after i install phonegap plugin :
it gives me this error
The following build commands failed:
CompileC build/example.build/Debug-iphonesimulator/example.build/Objects-normal/i386/PushPlugin.o example/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/wangeltamang/Documents/est_ionic/platforms/ios/cordova/build-debug.xcconfig,-project,example.xcodeproj,ARCHS=i386,-target,example,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
what does the required environment is missing? I have latest xcode updated and cli versions
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.9.0
Xcode version: Xcode 7.2.1 Build version 7C1002
What is your output for cordova platform?
$ cordova platform
Installed platforms: ios 3.9.2
Available platforms: amazon-fireos, android, blackberry10, browser, firefoxos, osx, webos
With ios 4.0.0 I had the same error.
I changed the platform version and it worked.
$cordova platform remove ios
$cordova platform add ios#3.9.2

Resources