Rename a Xcode Project to a new app - xcode

I have a Xcode8 project with swift3 been released as version 1.0. Then I enhanced the project to version 2.0. But now customer requires to have both these two apps (i.e v1.0 and v2.0) existing on the iPhone at the same time.
I have tried to rename the v2.0 project names, but whenever I install the 2nd project, it overwrites the existing project.
Any suggestion on this? Thanks in advance.

I have found the issue, I need to rename the bundle identifier in the project General settings to make it a new app.

Related

How to upgrade a cordova app and plugins

I have a Cordova (v5.2) app that I run on iOS (platform v3.9.1) and Android (platform v5.0). Is it best to upgrade Cordova from the command prompt, and then manually look for plugin updates, or should I look for plugin updates first then update Cordova? Also, I have recently upgraded from XCode 7.2 to XCode 8 and it is asking me to make changes to recommend project settings, this appears to break thinks. Should I allow XCode to make changes to the project, or should I upgrade Cordova first? I'm looking for a workflow and best way to manage these updates. Any advice is appreciated, thank you.
I would upgrade your Cordova platform first. The main version that I pay attention to is the cordova platform version. So in your case cordova-ios#3.9.1 and cordova-android#5.0.0. These packages are what control the cordova lib that gets injected into your native project. They also determine which version of Xcode you can use.
The cordova-cli pins certain platform versions by default when you run cordova platform add <platform_name>. I usually stick with the most stable release of cordova-cli for my needs and then add specific platforms (usually the latest) manually. cordova platform add ios#lateset.
Any partiular reason you're cordova#5.2, cordova-ios#3.9.1 , and cordova-android#5.0.0?
Infact you can also create a new project after cordova update and add the respective platforms and plugins so that the existing working project will be intact for reference.
If you wanna follow this approach then check out this following SO post. Even that post is related to porting cordova app from one PC to other, the steps still holds good even in this case. Hope it helps.
You should upgrade Cordova first (it's better if you install it globally with npm install -g cordova ).
After that, to update all of your plugins, you just have to remove them and readd them to your project, they will automatically be updated to be compatible with the last Cordova version.
cordova platform remove android
cordova platform add android#5.X.X
If you use the above method, be aware that any changes you made to the android platform folder will be lost (editing the contents of this folder is discouraged).
Alternatively, you may attempt to use the platform update script. For non-CLI projects, run:
bin/update path/to/project
For CLI projects:
Update the cordova CLI version. See The Command-Line Interface.
Run cordova platform update android#5.0.0 in your existing projects.

Xamarin Forms Push Notification: Android.Support.v7.MediaRouter Error

I am trying to add push Notifications to my application and I have added xamarin.google.playservices.Gcm package into my project and now I am getting the following error.
Error XA5207: Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file /Users/xyz/.local/share/Xamarin/Android.Support.v7.MediaRouter/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar doesn't exist. (XA5207) (NotificationExamplenew.Droid)
1) Check MediaRouter NuGet package was added to you project and project References.
2) Check Android SDK manager for latest update on our target SDK
And latest Support Library
Make sure , u don't add the these package manually , some time xamarin forms are not compatible with newest releases of android pkgs,
simply remove all the package , and add Xamarin forms from nuget ,this will automatically download all the required dependency
also make sure to install required packages , from tool-> android sdks manager -> select relevant listiings (extras in last).
I have succesfully implemented GCM based push notification let me know if u get stuck somewhere
If you already have Android Support Library installed and still you get this error then the following solution might work.
I deleted the folder 23.3.0.0 from the folder C:\Users(UserName)\AppData\Local\Xamarin\Android.Support.v7.MediaRouter and rebuilt the project again to fix it.
Basically, Xamarin picks the right version from Android SDK and extracts files in the above mentioned folder.

Same Jenkins Configuration for 2 Different Jobs

Greetings StackOverflow Community!
Is it possible to have the same configuration setup for an XCode Project and an Appcelerator Project in Jenkins?
I haven't really tried creating Titanium Project, and I'm not sure if it can generate an XCode Project (Like in Unity). If it's possible, can we do a generic setup?
EDITED:
Now I know that an Appcelerator Project builds an XCode project as well. Can we add an additional layer in Jenkins which dynamically determines the project then points the Project directory?
Or would it be best to just have a setup guide for XCode project and a different setup guide for Appcelerator Project in Jenkins? (As I'm documenting a guide, by the way)
Since Titanium indeed generates an Xcode project, you could do pretty much anything you'd do with an Xcode project once Titanium is done. So I'd document the Titanium compile step as a stage before continuing with either a Titanium-compiled or plain Xcode project.

Renaming project of cordova 3.1 in xcode

I can't change the cordova 3.1 project name in xcode. I try renaming as following like I did in previous version, but old name is coming in device. Please Help!

How to open a .pbproj on Xcode?

I downloaded a sample code from the MAC OSX developer library and the code is the format of a .pbproj (Project builder) and im unable to open it on xcode.
I have tried the following without any luck:-
1) Rename FancyAbout.pbproj to Old.xcodeproj
2) Open Old.xcodeproj. Xcode will ask you to upgrade it. Save it as
FancyAbout.xcodeproj.
3) When the project opens, choose Project > Upgrade All Targets in
Project to Native... to upgrade to the Xcode build system
4) Build and run.
I run a Mac 10.7.3 with Xcode on 4.3.2
Anyone have any suggestions on how i can get this running in xcode?
Thanks in advance!
To the best of my knowledge older Project Builder, and even older Xcode projects can not be opened or upgraded directly. The only real way you could upgrade would be to find a previous version of Xcode that is able to open and upgrade the older project then save the project using the older Xcode and see if the newest Xcode is then able to open the upgraded project.
Or, simply create a new Xcode project and copy over all the source files from the old project into your new project and go from there. This option is probably considerably easier then trying to find older versions of Xcode to do the upgrade with.

Resources