ALL,
I'm working with XCode 4.2 on Snow Leopard to build a custom application. It is not intended to be put on the Apple Store.
The question I have is: what option I need to change in order to place the resulting bundle in my home directory and not to the XCode default place?
Thank you.
Go to Xcode > Preferences > Locations.
There you can change the path of the derived data. You can change the location of all your projects' derived data or use the Advanced option to be able to set the location for your targets separately using target settings.
Related
I'm currently trying to set up a local environment to test in-app purchases in a macOS application.
Apple's documentation at https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode states:
To create a StoreKit configuration file, launch Xcode, then choose File > New > File. In the sheet that appears, enter “storekit” in the Filter search field, select StoreKit Configuration File...
When I filter on "storekit", there is no "StoreKit Configuration File."
What am I doing wrong? Do I need to install some kind of SDK or similar in Xcode?
I use Xcode 12.0 beta (12A6159) on Catalina 10.15.5.
The Storekit configuration file is found and I can create and configure it.
But the Scheme -> Run -> Option does not display a selection option to perform local testing on a macOS project, but only on IOS project.
On the apple documentation StoreKit Test framework is labelled macOS 11.0+
A comment on Apple Dev Forum indicate that this menu appears on a Big Sur configuration for a macOS project, but that Xcode stills connects to Sandbox. Not tried yet on Big Sur.
One thing that can trip people up:
If you are using Swift Packages and you have any source-file or directory from a package selected in the Project Navigator, then the types available in the File->New->File sheet is more restricted.
Select the iOS project, or a Group within it, then File->New->File will contain the StoreKit Configuration File option.
This is a brand new feature, so you need the latest version of Xcode for this - Xcode 12. Please also watch the session https://developer.apple.com/videos/play/wwdc2020/10659/
My app is currently called a silly name. Does anyone know how to change it using xcode7?. By app name i mean when you see the little app icon on the home screen with the apps name below it.
i have looked at other answers but they are only explained using Xcode 4-6.
xcode7 only!
Well, if you want to simply change your app's name in Springboard (aka Home screen), without renaming your project, targets and etc (which is always a lot of pain), you can just change "display name" in your app's Info.plist.
More info here: https://developer.apple.com/library/ios/qa/qa1823/_index.html
As far as I know, it applies to all versions of Xcode.
This did not change at all for quite a long time, so any older Xcode version answer does still apply:
In Project Navigator select your project > select your build target >
go to Build settings > Product name
Just change product name for your target.
I have a MacBook Pro that has Mac OS X 10.7.5. I was doing iOS development using Xcode 4.4 and I recently upgraded to Xcode 4.5.
For my application, I have built some 3rd party libraries that it depends on, and those libraries need to be placed in a certain location so my application can pick them up and use them. However I'm unable to locate the recent builds of the libraries because, even though Xcode says the libraries build successfully, nothing is available for derived data in the Organizer.
What can I do to determine where these libraries are being built?
In Xcode 4.5 look at Preferences->Locations.
This shows where your Derived Data location actually lives on the File System.
Click on the arrow next to the Derived Data path to show the path in the Finder.
I recently upgraded from Xcode 4.3.3 and found that the build location has been automatically changed to Custom, so my (debug) build products are now in:
~/Library/Developer/Xcode/DerivedData/Build/Products/Debug
I am guessing that Apple have made this change to simplify the location of build products in a single location. In Xode 4.3.3 for example build products were placed under:
~/Library/Developer/Xcode/DerivedData/XXX
where XXX is a randomly generated folder based on your Xcode project name.
I have also found it useful to enable hidden folders to be displayed in the Finder so that you can actually browse the contents of your Library folder. I used the free Onyx tool to enable the display of hidden folders.
Hope this is of some help.
I went into Organizer, right clicked on the project which was no longer generating derived data (even though I could see it was... just the delete button was greyed out) and removed it from organizer. When I reopened the project it button was available again
Is it possible to change the out put folder for where a target's executable and libraries are built to? Also is it possible to run more than one target at a time within XCode?
You can change where Xcode places derived data from Xcode's Locations Preferences. Choosing File > Project Settings allows you to change the derived data location for a single project.
I don't know of any way to run multiple targets simultaneously in Xcode.
I'm new to xcode and I must be missing something.
Create a new command-line project. Call it tempprog (for instance).
Select Project/Edit Project Settings.
Edit the name of the prefix header (tempprog_Prefixz.pch).
Build - it will fail, of course, looking for tempprog_Prefixz.pch
Now change the name of the prefix header back to tempprog_Prefix.pch.
Build again - it should work, but doesn't. It's still looking for tempprog_Prefixz.pch
Cleaning does not rectify the situation. What am I missing here? Where is the Prefixz.pch name being retained? If you look in the build output at the ProcessPCH command you can see that it still wants to use Prefixz.
It turns out there's a system of setting priorities.
From Working With Xcode Build Settings:
The levels at which build settings can be set, and their precedences are:
xcodebuild command-line flags (only applicable for command-line builds)
The target, editable via a target's Info inspector
The project, editable via a project's Info inspector
Xcode application settings, as set in Xcode > Preferences...
Xcode's built in defaults
The user environment, perhaps as set in a user's ~/.MacOSX/environment.plist file
Restarting your mac fixes the problem.