Unable to install the latest podversion of FMDB and SQLCipher - ios

I'm currently trying to install the latest version of FNB & SQL cipher on an M1 Mac; my terminal is using Rosetta to install pods. When I try to update the FMDB using pod install it still shows the old version number - FMDB 2.7.5 -> (unused) (latest version 4.0.2). I tried clearing the pods and reinstalling but it still didn’t work ? Any suggestions?
A-9M6NHY594: pod update SQLCipher
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 24 dependencies from the Podfile and 30 total pods installed.
A-9M6NHY594:$ pod update FMDB
Updating local specs repositories
^[[A^[[A^[[AAnalyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 24 dependencies from the Podfile and 30 total pods installed.
The following pod updates are available:
- AdobeMobileSDK 4.21.1 -> 4.21.2 (latest version 4.21.2)
- AFNetworking 3.2.1 -> 3.2.1 (latest version 4.0.1)
- Alamofire 5.4.2 -> 5.6.2 (latest version 5.6.2)
- AppCenter 4.1.1 -> 4.4.3 (latest version 4.4.3)
- Charts 3.6.0 -> 4.0.3 (latest version 4.0.3)
- DocuSignESign 3.0.1 -> 3.0.1 (latest version 4.0.0-beta)
**- FMDB 2.7.5 -> (unused) (latest version 4.0.2)**
- IQKeyboardManagerSwift 6.5.6 -> 6.5.10 (latest version 6.5.10)
- JWT 3.0.0-beta.10 -> 3.0.0-beta.10 (latest version 3.0.0-beta.14)
- MBProgressHUD 0.9.2 -> 0.9.2 (latest version 1.2.0)
- MobileSync 9.0.0 -> 9.2.1 (latest version 10.1.0)
- NewRelicAgent 7.3.0 -> 7.3.7 (latest version 7.3.7)
- PromiseKit 6.13.1 -> 6.18.0 (latest version 6.18.0)
- SalesforceAnalytics 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SalesforceSDKCommon 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SalesforceSDKCore 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SmartStore 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SnapKit 5.0.1 -> 5.6.0 (latest version 5.6.0)
**- SQLCipher 4.4.3 -> 4.4.3 (latest version 4.5.2)**
- SwiftyBeaver 1.9.3 -> 1.9.5 (latest version 1.9.6)
- XMLDictionary 1.4 -> 1.4 (latest version 1.4.1)

Related

Addition of cordova-plugin-firebase-dynamiclinks to Ionic 4 project renders unable to build

Would appreciate any guidance on how to resolve conflict with plugins when building Ionic 4 Cordova app for IOS w xcode.
Below are my working plugins - i.e. project builds successfully with these plugins.
BUT, when trying to add cordova-plugin-firebase-dynamiclinks using:
$ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN="example.ca" --variable PAGE_LINK_DOMAIN="example.page.link";
addition fails with error:
Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 31
at ChildProcess.whenDone (/Users/name/project/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
pod: Command failed with exit code 31
As discovered through search, I have tried:
platforms/ios/pod repo update
platforms/ios/pod install
which execute successfully prior to addition of cordova-plugin-firebase-dynamiclinks
MY WORKING SET OF PLUGINS (these build w/ success prior to addition of dynamiclinks plugin):
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-firebasex 7.0.1 "Google Firebase Plugin"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googleplus 8.2.1 "Google SignIn"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-google-services 1.3.2 "cordova-support-google-services"
IONIC INFO:
Ionic CLI : 5.4.15 (/usr/local/lib/node_modules/ionic)
Ionic Framework : #ionic/angular 4.11.8
#angular-devkit/build-angular : 0.800.6
#angular-devkit/schematics : 8.1.3
#angular/cli : 8.2.2
#ionic/angular-toolkit : 2.0.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib#9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 14 other plugins)
Utility:
cordova-res : 0.8.1
native-run (update available: 0.3.0) : 0.2.8
System:
ios-sim : 8.0.2
NodeJS : v10.16.3 (/usr/local/bin/node)
npm : 6.13.6
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504
cordova-plugin-firebase-dynamiclinks conflict with cordova-plugin-firebasex.
so you need to sync Firebase Dependency
look Podfile example
pod 'Firebase/Core', '6.17.0'
pod 'Firebase/Auth', '6.17.0'
pod 'Firebase/Messaging', '6.17.0'
pod 'Firebase/Performance', '6.17.0'
pod 'Firebase/RemoteConfig', '6.17.0'
firebase version is '6.17.0'. this is because of firebasex
so you must change
plugins/cordova-plugin-firebase-dynamiclinks/plugin.xml
<pods>
<pod name="Firebase/Analytics" spec="~> 6.17.0" />
<pod name="Firebase/DynamicLinks" spec="~> 6.17.0" />
</pods>
it have to be same with firebasex's Firebase dependency.

Failed to install 'cordova-plugin-firebase-authentication': undefined

I am trying to build iOS from ionic 4. But getting stuck due to below error
Using cordova-fetch for cordova-ios#^5.0.0
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.bombaydesigncentre.bloodbuddies
Name: Blood Buddies
iOS project created with cordova-ios#5.0.1
Installing "call-number" for ios
Installing "cordova-open-native-settings" for ios
Installing "cordova-plugin-androidx" for ios
Installing "cordova-plugin-androidx-adapter" for ios
Installing "cordova-plugin-contacts" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-firebase" for ios
Installing "cordova-plugin-firebase-authentication" for ios
Failed to install 'cordova-plugin-firebase-authentication': undefined CordovaError: Promise rejected with non-error: '/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!\': \u001b[31m[!] You cannot run CocoaPods as root.\u001b[39m (CLAide::Help)\n\n\u001b[4mUsage:\u001b[24m\n\n $ \u001b[32mpod\u001b[39m \u001b[32mCOMMAND\u001b[39m\n\n CocoaPods, the Cocoa library package manager.\n\n\u001b[4mCommands:\u001b[24m\n\n \u001b[32m+ cache\u001b[39m Manipulate the CocoaPods cache\n \u001b[32m+ env\u001b[39m Display pod environment\n \u001b[32m+ init\u001b[39m Generate a Podfile for the current directory\n \u001b[32m+ install\u001b[39m Install project dependencies according to versions from a\n Podfile.lock\n \u001b[32m+ ipc\u001b[39m Inter-process communication\n \u001b[32m+ lib\u001b[39m Develop pods\n \u001b[32m+ list\u001b[39m List pods\n \u001b[32m+ outdated\u001b[39m Show outdated project dependencies\n \u001b[32m+ repo\u001b[39m Manage spec-repositories\n \u001b[32m+ setup\u001b[39m Setup the CocoaPods environment\n \u001b[32m+ spec\u001b[39m Manage pod specs\n \u001b[32m+ update\u001b[39m Update outdated project dependencies and create new Podfile.lock\n\n\u001b[4mOptions:\u001b[24m\n\n \u001b[34m--silent\u001b[39m Show nothing\n \u001b[34m--version\u001b[39m Show the version of the tool\n \u001b[34m--verbose\u001b[39m Show more debugging information\n \u001b[34m--no-ansi\u001b[39m Show output without ANSI codes\n \u001b[34m--help\u001b[39m Show help banner of specified command\n\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:47:in `run\'\n\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>\'\n\tfrom /usr/local/bin/pod:22:in `load\'\n\tfrom /usr/local/bin/pod:22:in `<main>\'\n'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
It is failing while installing cordova-plugin-firebase-authentication
I have tried multiple things like changing the permissions, changing the user of /usr/local/lib/node_modules/cordova but no luck.
Here is the list of plugins used:
cordova-open-native-settings 1.5.2 "Native settings"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-firebase-authentication 3.0.0 "cordova-plugin-firebase-authentication"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.3.2 "cordova-support-google-services"
cordova.plugins.diagnostic 5.0.1 "Diagnostic"
onesignal-cordova-plugin 2.7.0 "OneSignal Push Notifications"
So, after doing couple of changes I found the issue was due to the npm package.
We were getting this error on NodeJs 10.17.0. So, we downgraded NodeJs to 10.14.2
Seems like the firebase authentication plugin might have conflict with NodeJs 10.17.0
So, the final configuaration which worked was
cordova-plugin-firebase-authentication 3.0.0 NodeJs 10.14.2
npm 6.4.1 cordova cli 9.0.0

Ionic build ios error code 65

While trying to build ios using ionic cordova build ios, I am getting the following error -
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/raihan/Downloads/quitch-app/platforms/ios/cordova/build-debug.xcconfig,-workspace,Quitch.xcworkspace,-scheme,Quitch,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/raihan/Downloads/quitch-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/raihan/Downloads/quitch-app/platforms/ios/build/sharedpch
I have searched through the net since a long time but can not find any solution.
My plugins list
com-sarriaroman-photoviewer 1.1.10 "PhotoViewer"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 4.0.0 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-firebase 0.1.23 "Google Firebase Plugin"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-youtube-video-player 1.0.6 "CordovaYoutubeVideoPlayer"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
My system info
cli packages:
#ionic/cli-plugin-cordova : 1.6.2 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-plugin-cordova)
#ionic/cli-plugin-ionic-angular : 1.4.1 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-plugin-ionic-angular)
#ionic/cli-utils : 1.6.0 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-utils)
ionic (Ionic CLI) : 3.6.0 (/Users/raihan/Downloads/quitch-app/node_modules/ionic)
global packages:
Cordova CLI : 7.0.1
local packages:
#ionic/app-scripts : 2.0.2
Cordova Platforms : android 6.2.3 ios 4.5.1
Ionic Framework : ionic-angular 3.5.3
System:
Android SDK Tools : 26.0.2
Node : v6.11.3
OS : macOS High Sierra
Xcode : Xcode 9.0 Build version 9A235
ios-sim : 6.1.2
npm : 5.3.0
Any Help is highly appreciated.
I have fixed the errors. The issues are as follows -
The main problem was with the cordova-plugin-console plugin. Cordova do not support this plugin since cordova version-ios 4.5.0.
Also I had to provide the updated google-json file.
Now it is building successfully on XCode and Emulator.

ionic app runs on iOS 10.1 emulator perfectly, but errors when deployed to a device

I have an ionic application that i have been deploying to google play and itunes store successfully. All the current functionality works great on all android devices tested.
For iOS, I am able to see all the functionality working great using
ionic emulate ios --target="iPhone-6-Plus"
(Or any target, really!)
When I build an ipa following the normal steps on https://ionicframework.com/docs/guide/publishing.html ... and upload the ipa to testobject.com and I cannot get the same successes.
For iOS platform 8.0, 8.1, and 8.2 the app will load, but some functionality doesn't work.
For iOS platform 8.3 - 10.1 the app either loads a blank white page, or a red page with an error stack I cannot read.
What are the normal debugging steps for this type of scenario? Like i said i can build to an emulator just fine...
Here is my plugin list.
kirbsah$ ionic plugins list
cordova-plugin-actionsheet 2.3.1 "ActionSheet"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.3.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
ionic-plugin-deploy 0.6.5 "IonicDeploy"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.8.1 "PushPlugin"
Here is my ionic information
Your system information:
Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
ios-deploy version: 1.9.0
ios-sim version: 5.0.12
OS: Mac OS X Sierra
Node Version: v7.0.0
Xcode version: Xcode 8.1 Build version 8B62
Any help or direction appreciated. I would assume the problem is somewhere in my xcode build process... but i'm just following documentation.

Cocoapods installing old version of Stripe library by default

Currently attempting to set up Stripe in a fresh iOS app in Swift using the following guide: https://stripe.com/docs/mobile/ios. Immediately ran into trouble with Cocoapods. The repo can be found here: https://github.com/ktransier/stripeTest/blob/master/Podfile
First attempted using the line:
pod 'Stripe'
This resulted in:
Analyzing dependencies
Downloading dependencies
Installing PaymentKit (1.0.2)
Installing Stripe (1.0.2)
Generating Pods project
Integrating client project
I need version 2.2.1 (the latest version), but it is installing 1.0.2.
Next I attempted to use the explicit version number, as copied off the Cocoapods site:
pod 'Stripe', '~> 2.2'
Terminal output:
[!] Unable to satisfy the following requirements:
- `Stripe (~> 2.2)` required by `Podfile`
Here's my stack:
CocoaPods : 0.34.4
Ruby : ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.1]
RubyGems : 2.4.1
Host : Mac OS X 10.10 (14A389)
Xcode : 6.1 (6A1052d)
Git : git version 1.9.3 (Apple Git-50)
How can I install the latest Stripe library?
Looks like your local copy of the specs repo hasn't been updated in a while. Try running
pod repo update

Resources