Please help me to add second target in Xcode 5 , I need to build two different app like "app 1" and "app 2". app 1 should point to url 1 and app 2 should point to url 2 .
Also I should be able to install both the app on same device at same time.
I am using Xcode 5.1.
I have also tried to duplicating existing target and renamed it and changed product name and bundle identifier, But it iss over writing the app 1 when I install app 2.
Follow the below steps to add new target in Xcode 5.1
1) Open Xcode and go to File->New-> Target
2) Choose a target for your new target and Tap on "Next"
3) Enter the Product Name (Target name) and Tap on Finish
Related
I want to test my app on a device, so I encode my device on the portal,
I made a new a distribution provisioning profile on ad-hoc mode. I download it,
and install it on my XCODE.
I checked on the informations about project and targets (all sounds correct but I'm not a specialist of those configuration) :
first shot second shot
And When I build for provisionning (with appname>IOS Device next to the "Play" button), it gives me :
error: error reading property list '/Users/...iphone application V1.0/e-mars/emars.entitlements' - property list has no object
Command builtin-productPackagingUtility failed with exit code 1
Could you please help me?
*EDIT : *
Product : Build for : Build for Profiling (and normal build with the emulator) run when I select emars > iPhone Simulator next to the play button
*EDIT 2 : *
I've tried to change the Bundle identifier :
I had com.elsingor.${PRODUCT_NAME:rfc1034identifier} and I put com.elsingor but it's the same issue...
EDIT 3
I'va created a new Entitlements and edit the reference in the plist to the new entitlements and...
Now I build with myApName>IOS Device on clicking on Build for archiving.
I again have a problem; I didn't see the Archive in the Organizer! Please help me :-/
FINAL EDIT :
I tried to press simply Build instread of build > build archive and it works for me !
i followed this tutorial to do my ad hoc builds
http://www.musicalgeometry.com/?p=1237
but you can of course also take a look at the documentation at testflightapps.com
http://support.testflightapp.com/kb/tutorials/how-to-create-an-ipa-xcode-4
you will see in the first post they talk about creating an entitlements.plist file and maybe thats where your problems is. i would also say because i ran into this problem, when everything is done and its time to "Archive" make sure the simulator is not selected. iOS Device needs to be selected for Archive to not be greyed out.
iPhone ad hoc build using Xcode 4
i have never done an adhoc build on its own, i always use testflightapps.com to distribute (so for this you will need a distribution cert as well) my apps and i recommend using them. Overall it was a fairly simple process and they do have free accounts so theres no reason not to use their service.
If you want to test on your device, do a development build instead of adhoc.
Go to the iOS Provisioning Portal in the dev center (https://developer.apple.com)
1) First you need to add your device.
2) Create a Development Profile - include this device in it.
3) Download and install in xcode.
4) Select this profile in the Code Signing section of Project and Target Build Settings
5) Connect your device to the computer you are working on
6) Select scheme that corresponds to your device (if you have an iphone it will Read
iPhone your.ios.version)
7) Hit Run - the code will build, install the app on your device, run it and will connect the debugger.
I have one iPhone with the name of "Sample" in my device. I did some changes on the app for the version two. I want to install the "Sample1.1."(Second Version) app in my device without deletion or replace of first one. I have did below steps,
1. Changed the Product Name "Sample" to "Sample1.1"
2. Changed the ipa file Name "Sample" to "Sample1.1"
I have tried these steps, when i trag the "Sample1.1" ipa to iTunes the "Sample1.1" replaced with the "Sample" app. I want to install these two app in my device. What are the changes i need to do in XCode? Can you please help me? Thanks in advance.
It's not the name that makes the difference, it's the bundle ID in your app's plist file.
Change that, and then you can install two copies of your app.
Create a new target in Xcode, which will give you a second info.plist file. In your second info.plist you can change the app name and bundle ID. you can now compile either app from the same source and install them both on the same device without needing to do any manual editing after you compile.
Click on your project, then there will be project and targets, you can easily duplicate the current "Sample" and make it "Sample1.1". Next to "Run" button, you can select your "Sample1.1" and build it, it will install as different version
You can use a different provisioning profile. Then in setting uncheck the automatically manage signing option and chose the profile you added for signing.
I have an ios application that runs on xcode 3.2.6. I want to change application name and application icon. I also want to use another developer identity. In xcode 3 I did not find how to change this and now I am moving to xcode 4.
To change the application icon go to Application Targets -> info - > and in the Icon file column write the name of the image with its extension example: abc.png and put the image in the project.
And for the development identity select project and select Build Setting and choose Code Signing column and set the appropriate profile.
I just upgraded from Xcode 3 to 4. Have been playing around a bit first to get used to the new interface and trying to find where everything has moved to... (pfffff). New projects seem to work fine but it's definitely a large transition.
Now I tried opening some older projects but something strange happens...
ALL my projects are iPhone projects, none is for OS X but when opened in Xcode 4 it says in the left most pane: 1 target, missing base SDK. In the right pane I see: Mac OS X Application Target, everything in the Targets Section is related to OS X and NOT to iPhone.
I tried adding a target for iPhone, but still the target is missing. I then deleted the OS X target and see in the left pane: 1 target, IOS SDK 4.3 but the "Run" option in Project menu is still disabled.
I also tried this with sample files from tutorials I used in the past (eg Beginning iPhone 3 Development en More iPhone 3 development) but I have the same problem!
1) Shouldn't Xcode open those Xcode 3 projects just fine ?
2) What can I do to have the "Run" option working again ?
You need to set two Build Settings:
For Base SDK - set this to Latest iOS
For Deployment Target - set this to iOS 4.3 (or whatever the minimum SDK is that you want your app to work on.
Related to point 1 - if you hard code the SDK version here, then whenever it's upgraded, you'll likely get error messages about missing SDKs if the old one is removed
Yo have to try this
You have to select your project then in middle pane you have to select "Targets" and then go to "Build Settings" tab and in base SDK select "IOS 4.3".
Your project -->Targets(your Project Name) -->Build Settings -->Base SDK --> IOS 4.3
You need to set Base SDK and IOS Deployment Target. My Xcode 3 projects works fine after that.
If you select your project, in the editor window you get the PROJECT and TARGETS to work with.
You can set proper values their.
You may need to do more things. In Xcode4 configurations are managed using Scheme. So, Go to
Menu -> Product -> Manage Scheme,
Select your scheme, and Edit your scheme.
You may relieved off some issues there.
You need to follow both answer, set the base SDK and manage the SCHEME.some times you may not see the iphone simulator option in the dropdown list then go to Manage scheme change debug to release then you may see the iphone simulator in dropdown and change it back to debug mode.
I'm trying to upload my first app to App Store. I'm following the instructions in the iOS Provision Portal. The problem is that all the instructions and screen shots are still relevant to XCode previous version...
I'm stuck in Distribution tab in the section called Building your Application with XCode for Distribution in instruction #4 (see screen shot attached).
It says "In the Target Info window, select the ‘Build’ tab and set the ‘Configuration’ to ‘Distribution’".
Where do I find this Configuration field in XCode 4?
In left view listing files etc in xcode, go to the top and click the project name. You'll see target etc show up on right.
Xcode 4 is different from Xcode 3 so you'll have to navigate and check it out.
Update: The configuration option has been converted into schemes. You can create schemes for debug, distribution etc and once the scheme is selected you can configure that target as well.
Info on schemes