Resolving permissions error for Apache Cordova command line usage
We found, after a recent Apache Cordova upgrade, that every time we tried to run Cordova commands in the Terminal we'd receive the following error message:
Error: EACCES, permission denied '/Users/name-here/.config/configstore/update-notifier-cordova.json'
You don't have access to this file.
at Error (native)
at Object.fs.openSync (fs.js:502:18)
at Object.fs.readFileSync (fs.js:354:15)
at Object.create.all.get (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
at Object.Configstore (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
at new UpdateNotifier (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:34:17)
at module.exports (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:123:23)
at checkForUpdates (/usr/local/lib/node_modules/cordova/src/cli.js:64:20)
at cli (/usr/local/lib/node_modules/cordova/src/cli.js:116:5)
at Object. (/usr/local/lib/node_modules/cordova/bin/cordova:41:1)
Definitely not a good sign!
Thankfully, fixing this is quite straightforward...
Managing Cordova PhoneGap plugins from the command line
In the following mini-tutorial we'll look at how easy it is to add, find, list and remove plugins for Cordova PhoneGap projects using the command line.
We are going to assume that you have the following software installed on your system:
It's also assumed that you have some familiarity with using the command line.
If you can answer yes to all of the above let's get started!
Publishing a PhoneGap App to the Apple App Store Part 2
If you haven't done so already make sure you read part 1 of this series where we discussed setting the initial foundations for a PhoneGap App. In this second instalment we're going to take a look at setting up the necessary accounts for you to be able to publish your iOS Apps to the Apple App store...
Publishing a PhoneGap App to the Apple App Store Part 1
In this tutorial we're going to take you through the process of publishing a PhoneGap App to the Apple App store. Due to the number of steps involved this tutorial will be broken over a number of different blog entries:
- Setting up your Environment
- Registering for an Apple Developer account
- Creating App Certificates & Profiles
- Publishing your App
There's a lot to get through so let's get started!
Xcode 6 semantic issue with property StatusCode inherited from NSHTTPURLResponse
After recently updating to Xcode 6.0.1 we found the following warning when publishing a Cordova PhoneGap App we're in the midst of developing:
- Semantic Issue 'atomic' attribute on property 'statusCode' does not match the property inherited from 'NSHTTPURLResponse'
Thanks to this helpful post we found a much needed solution...
Fixing the mobile header height in jQuery Mobile for iOS7
If you're developing Phonegap applications with jQuery Mobile for devices running iOS7 then you're probably going to experience some issues with the placement of items within the application header. As Apple have changed how the header behaves in iOS7 you'll need to make some adjustments in your code to accommodate this.
Resolving iOS 6 deprecation errors in cordova phonegap
Having recently upgraded to Cordova Phonegap 3.5 we started seeing the following iOS6 deprecation warnings when publishing our App for testing:
- Deprecations: ’dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0
- Deprecations: 'presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0
Thankfully, resolving these is a relatively simple process.
The basics of setting up Phonegap for iOS
If you want to develop for different mobile platforms but don't have the time, inclination or motivation to learn the Objective C, Java or C# languages then PhoneGap should definitely be at the top of your must-have technologies list.
In this tutorial we're going to take you through setting up the basic Phonegap environment for iOS.
Resolving network connectivity issues with PhoneGap 3.3.0
Something very, very odd was going on here.
Xcode 5 accelerometer warning for ios7
If you're developing mobile Apps for iOS7 using PhoneGap 3+ and Xcode 5 chances are you've come across compiler warnings when publishing your app to an iOS device.
Typically these will involve the following:
- UIAccelerometer' is deprecated: first deprecated in iOS 5.0 - UIAccelerometer has been replaced by the CoreMotion framework
- Implicit conversion loses integer precision: 'unsigned long long' to 'int'
Publishing your App still works but how to resolve these warnings? Read on...