What does the “Embedded Content Contains Swift Code” build setting in Xcode 6 do?

It does not need to be Yes for linking. This setting is only for when you have a pure Objective-C target that depends on a mixed-source or pure Swift target. Description: Enable this setting to indicate that content embedded in a target’s product contains Swift code, so that the standard Swift libraries can be included … Read more

How can I reset the package cache on just one package with Swift Package Manager

To reset the cache for a single package: Navigate to ~/Library/Caches/org.swift.swiftpm/repositories and deleting the folder and lock file related to the package Then, in Xcode, run File–>Swift Packages–>Reset Package Caches You can also try the solution recommended here to reset the entire cache (thanks @Bao Lei): https://stackoverflow.com/a/72838880/1099193

Is there a way to export Xcode key bindings?

From Xcode 5 to Xcode 12 the correct folder you should backup is ~/Library/Developer/Xcode/UserData where you’ll find the following items: /Code Snippets Your user generated code snippets: NSHipster on XCode Snippets /FontsAndColorThemes Any default themes you’ve modified: XCode 5 Themes /KeyBindings Default.keybindings which you can open with xcode (xml/plist): keybindins in xcode 5 IDEDocumentationWindow.xcuserstate IDEOrganizerWindowController.xcuserstate … Read more

xcode/iOS: Autoresize to fill a view – explicit frame size is essential?

Autoresizing does not mean that the subview will take up the size of its superview. It just means that it will resize relative to the size change of its superview whenever the superview’s bounds change. So initially, you have to set the size of the subview to the correct value. The autoresizing mask will then … Read more

How to auto increment the build number in Xcode 5 [duplicate]

Go to Editor -> Add Build Phase -> Add Run Script Build Phase Go to Build Phases in the project navigator and edit Run Sript. Change Shell to /bin/bash and paste the following script: #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” “$INFOPLIST_FILE”) buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c “Set :CFBundleVersion $buildNumber” “$INFOPLIST_FILE” Don’t forget to change the Build … Read more