I have 2 version of the same project on my machine. Both have same unique bundle identifier. These are because i have 2 different version of the same application. I was wondering of instead I uninstall each version every time and re debug the actually desired version. If there is anyway to do this except than creating another project with different project name.
Yes, you can create another "build target" within the same Xcode project then configure it with a unique bundle id.
Related
I have created an XCode project through Unity in order to build for iOS, and the build succeeds with a few warnings, but there is nothing in the build folder. It takes a few minutes to build, so it seems like it's doing something, but nothing is there.
When I deleted the empty placeholder build folders that come with the Unity-generated XCode project just to see if it creates anything, the build folder does not even get created. I have tried changing the bundle identifiers in Unity and on my provisioning profiles to match each other, but it hasn't helped.
I am building for Generic iOS Device as opposed to an actual Device connected to my Mac. Is that part of the issue?
Jean Luc answered this question, but he wrote a comment, so I am posting it here for clarity:
you build the binary through Product > Archive, after building the Organizer Windows appears where you can export a binary either for ad hoc or app store deployment
I generated a build on an app for the App Store awhile back. Now I am making some changes but when I try to Run the app in Xcode v7.3.1 I see an alert saying "A build only device cannot be used to run this target. No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination."
I can build the app and run it on my iPhone but my emulators have disappeared from the dropdown list of run targets.
I tried cleaning the build and setting Build Settings > iOS Deployment Target to 7.1 as suggested by others but to no avail.
How can I can get my emulators back in the list of run targets?
Xcode has been buggy lately, try to close out Xcode and re-run the project, If that doesn't work make sure your root folder which holds your project contains your project name an make sure the project names are exactly the same, this happened to me yesterday!
Is it possible to have an Xcode version installed and set up for apps ad hoc distribution, with distribution certificate and provisioning profile and so on, and at the same time to install another Xcode version and patch it with JailCoder or avoid codesigning apps built by that Xcode? I mean, without interfering with the settings of the former Xcode version.
I'd like to test deployment on jailbroken devices but keeping an Xcode with the settings needed for that purpose separately.
Thanks!
you can install multiple versions of xcode on your computer if you want the same version installed twice... then you will have to change the name of it so your computer doesn't recognize you as having it and will create a new one... or you can copy paste it ... either way yes, you can have multiple versions ...
Yes, you can always install multiple versions of Xcode on one machine by simply choosing a different install location during the installation process (do not accept the default installation location for the second version).
Disabling the requirement to code sign iOS apps is done by modifying a .plist file, that's nested under the install directory for Xcode. For example, the default location (adjusting for SDK version) is:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist
So, changing this file to modify one Xcode install will have no effect on the other.
I've decided to start versioning my project "the Apple way," using "Bundle versions string, short" for the "marketing version" (i.e. 2.0.1) of my project, and "Bundle version" as a build number (e.g. 42).
To that end I've added a Git post-commit hook to call agvtool next-version -all. This does in fact work -- Info.plist is being properly updated with an incrementing version number.
However it also has the unfortunate side effect of apparently converting my iOS project into a Mac project -- iOS device, iPhone 5.0 simulator, etc. disappears from my Scheme menu to be replaced with a single entry, My Mac 64-bit. Fortunately this change appears to be temporary, as quitting and relaunching Xcode brings back the missing iOS scheme entries.
Am I doing this wrong? Is there a better way of accomplishing my goals? Or have I run up against a weird bug in Xcode?
I'm having exactly the same problem, but instead of relaunching Xcode I'm just re-selecting Deployment Target in Summary tab in target options. This is much faster.
XCode 4 tries to parse the project file every time it changes, as opposed to XCode 3.2 which only parsed the project file when the program itself received focus.
I wouldn't call it a bug per se, but it certainly makes for a frustrating experience.
Fwiw, I've seen this kind of thing happen with the schemes when connecting or disconnecting my iDevice AND, while Xcode thinks about what I've done, mess with the scheme menu. Closing and re-opening the project fixes it.
I usually make sure that my project files are closed before I commit them. I would certainly do this if my post-commit script were also modifying the project file.
Our company created an iOS app that has an iPhone version and an iPad version. The app is called "SaveMyPlace". We wanted to call the iPad version "SaveMyPlaceHD", but that name was too long, and got truncated on the springboard screen.
We ended up calling both versions of the app the same thing, "SaveMyPlace." This worked find in Xcode 3.x. You just select your first target, build it, do what you need with it, then select the second target, build that, and you're good to go.
In XCode 4, the build system wants to build both targets at the same time. I have 2 targets set up, with the appropriate source files nibs, graphics, etc, set up for each target. However, Xcode builds both targets in the same directory, and the iPhone version ends up overwriting the iPad version of the the app.
How do I set up Xcode to build 2 separate targets with the same filename, and save the resulting .app files into separate directories?
Just beacuse your app's name is different doesn't mean that you can't just display the same name on springboard.
In your info plist
CFBundleIdentifier defines the unique id for your app.
CFBundleName defines the name displayed on springboard.