well I have to update from cordova 2.5.0 to cordova 2.9.0 - so I have to update first from 2.5. to 2.6 to...2.9.0
I'm always having troubles with these upgrades, because I'm not a native speaker and might get the documentation on cordova.apache.org wrong
Ok here is where I'm stuck right now:
I have to run the create command with the following parameters:
- Path to your new Cordova iOS project
- Package name, following reverse-domain style convention
- Project name
2 questions:
- is the command-line-tool the terminal
- what is meant by package-name? Is is important, that this new project should have the same package-name and reverse-domain-style like my real project i want to upgrade from 2.5 to 2.x?
Sorry if this is a ridicolous question, but I'm really desperate right now :(
Hope someone could help me.
Here is the link which will help you to upgrade your existing PhoneGap application.
http://docs.phonegap.com/en/2.9.0/guide_upgrading_android_index.md.html
Yes you need to use the terminal for using command line tool.
Package name is used for unique identification for your app. So it is important as the same package name you also need to declare in your provisioning certificate for iOS . So you need to give the same package name as in your existing project.
Related
I am trying to use React Native with ARKit for the first time and I ran into a problem.
What I did:
(in Terminal)
react-native init myApp
cd myApp
npm install --save react-native-arkit
react-native link react-native-arkit
(in XCode)
Open myApp workspace under myApp/ios
Assign my Team
Trying to Build on a device
What I got:
React/RCTConvert.h' file not found
in color-grabber.m
I found a lot of references to the same problem online (dating back to 2017+), none of the fixes they offered seemed to work for me.
Truly appreciate any help!
Just want to provide an update if anyone is interested.
After a long array of manual updates to the settings I managed to fix most of the issues. However, given that the package is not supported, I gave up on it.
The way to go seems Viro React which is now open source and is pretty actively supported. Unfortunately, it is not suitable for my purposes (I need a very small footprint), so I will try using iOS native components instead.
I am using Xcode 9.4 and current react native version #0.54.4 I want to upgrade the version to 0.55.4.
As I upgrade my project using react-native-git-upgrade, I see some un merged conflicts in the project.pbxproj. Some of the settings are my own that are conflicting with the changes in the new version.
I tried all the possible ways in which I could resolve the conflicts. But still X-code shows the error could not load the project, and it does not allow me to build my project.
How do I understand what those conflicts are referring to and how can I safely resolve the conflicts?
Unfortunately there is no magic way to resolve conflicts. I wish there was. The file is managed by Xcode and from personal experience I have found that you can easily mess it up performing merges.
Git is definitely your best-friend. Make sure that before you start any merge you are on a new branch and fully committed so that if you mess-up you can easily get back to your original version.
What I usually do is keep the original version of the project.pbxproj and then make the changes manually in Xcode. I know this doesn't sound ideal but it does mean you should be able to open the project in Xcode, though your project may not run - just yet.
If you’re unclear about which version to keep, I would keep ours as that is the original version of your project.pbxproj. From the documentation:
You can think of "ours" as "your team" and "theirs" as "the React Native dev team".
Then I would make the changes manually as detailed below. As that will show their changes and the should hopefully not be that many.
To help me find the changes that I have to make I find that React Native Upgrade Helper is an invaluable resource. There you can find a git diff of any two versions of react-native that you choose. (This saves you having to create two projects and then compare them yourself, a big timesaver.)
Currently you are upgrading from 0.54.4 to 0.55.4 this link shows the diff between those versions
https://react-native-community.github.io/upgrade-helper/?from=0.54.4&to=0.55.4
For additional help you could create a project in a specific react-native version, using the following will create a project for version 0.55.4.
react-native init newproject --version react-native#0.55.4
That way you can look inside the Xcode project to see what has been added, and where it was added from, as the git diff doesn't always tell where it came from.
I have never had much luck using react-native-git-upgrade and I have come to prefer doing it manually, as I have had much more success doing it that way.
After updating react native to version 0.55 from 0.51, everything seemed to function normally in the local mode. But the production build fails.
I fixed this by upgrading react native once again from 0.51, and keeping my changes instead of theirs almost all the time.
May be there should be more detailed explanation in the documentation regarding the kind of issues one run into, by picking the wrong changes.
I am trying to update an old plugin i found. My Objective C skills are close to null and i was wondering if somebody could point me to a suitable guide to update this plugin. I have made a plugin.xml and installed it in my app succesfully but but the native code is way to old (phonegap 1.5)and does not work.
Would be even better if someone could help me .
This is the plugin i wanted to update for use in phonegap 3.0
https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iOS/AudioRecord
Thanks in advance for taking out time to check this out
I downloaded the latest version of Phonegap for IOS and ran "make" from Terminal. I ran make in the following subdir.
phonegap-2.3.0/lib/ios
I get these two lines back on stdout:
Xcode.app: '/Applications/Xcode.app'
Using Developer folder: '/Applications/Xcode.app/Contents/Developer'
and my shell prompt is back.
However, no PhoneGapLibInstaller.pkg file is created as it describes on the github site instructions.
https://github.com/infil00p/phonegap-iphone
The file wasn't in my ios directory but when I did a search on my entire hard drive there is nothing there. I wanted to check in case it put it in the Xcode.app package contents for some reason.
In case this make file did something other than in the guides and actually worked, I loaded Xcode but PhoneGap doesn't show up as a Framework/template to choose from when making a new package.
Any thoughts or suggestions?
Thanks,
Dano
That Github repo is from 3 years ago. You would probably be better off looking at the actual current documentation.
Adobe "value add" distribution page: http://phonegap.com
Docs: http://docs.phonegap.com
Latest Cordova information (the open source project PhoneGap is based on): http://cordova.apache.org/
Current Github: https://github.com/apache/cordova-ios
I'm trying to make an app which uses the barcodescanner plugin for IOS which comes with the phonegap plugin library (latest build / phonegap 1.4). I have allready made the Android version with the same plugin for android, and it worked fine. I have followed the instructions step by step and it won't work for me.
I'm getting an com.phonegap.barcodeScanner not found, and i have checked that the plist is correct etc.
I have copied the new scanneroverlay.xib to the project so i don't have to play with the overlay.
I have copied all the mm c h files to the plugin folder. No error when building. Does i have to compile the plugin or??? is there someone who has a test app or a good idea please.
Getting a little frustrated.
Kind regards.
/Mikael
Check that you have a reference to the barcodescanner.js in the index.html file, and that it is finding it okay.