xcode
How to get .app file of a xcode application
You can find the .app file here: ~/Library/Developer/Xcode/DerivedData/{app name}/Build/Products/Deployment/ Credit for the path location goes to this answer SIDENOTE: I had a lot of fun trying to get this into my iPad after that. It worked however. Using Snow Leopard + Xcode 4.2 + iPad with IOS 5.1.1 🙂 – I used the iPhone configuration … Read more
How to check if XCode command line tools are installed?
10.15 Catalina Update: See Yosemite Update. 10.14 Mojave Update: See Yosemite Update. 10.13 High Sierra Update: See Yosemite Update. 10.12 Sierra Update: See Yosemite Update. 10.11 El Capitan Update: See Yosemite Update. 10.10 Yosemite Update: Just enter in gcc or make on the command line! OSX will know that you do not have the command … Read more
Animating a constraint in Swift
You need to first change the constraint and then animate the update. This should be in the superview. self.nameInputConstraint.constant = 8 Swift 2 UIView.animateWithDuration(0.5) { self.view.layoutIfNeeded() } Swift 3, 4, 5 UIView.animate(withDuration: 0.5) { self.view.layoutIfNeeded() }
Git is not working after macOS update (“xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools”)
The problem is that Xcode Command-line Tools needs to be updated due to OS update. ** UPDATED for Ventura and updated apple dev download page ** After opening the terminal after a restart, I tried to go to my code, and do a git status, and I got an error and prompt for command line … Read more
What does the dark triangle, located on the folder icons in Xcode 9, mean?
Folders without dark triangles exist as a group in your project and also (what is new in Xcode 9) exist as a folder in file structure. Example: After double-click in your project navigator you can see menu: For New Group Xcode create group in project navigator and create folder in file structure (in finder) and … Read more
How do I (easily) delete a constraint in Interface Builder in Xcode 6
In Xcode6 (Beta5) when I click on a particular constraint in the Size inspector, it acquires a thin blue border. The constraint can then be deleted using the backspace.
override git from Xcode with homebrew version
Xcode is actually using the GIT that is stored in /Applications/Xcode.app/Contents/Developer/usr/bin. The same version of GIT gets installed in /usr/bin when you installed the command line tools as part of Xcode installation. So, you won’t be able to change what Xcode is using (unless you are willing to muck with the contents of the Xcode … Read more
Calling Function from another class swift
In GameViewController you have defined scoreAction as instance method not the class function.You should call scoreAction by making instance of GameViewController class Menu: SKnode { func scoreAction(sender:UIButton!) { self.buttonPlay.removeFromSuperview() self.buttonScore.removeFromSuperview() // CALLING FUNCTION //see () on GameViewController GameViewController().showLeaderboard() } } I think you should load GameViewController from storyBoard if you have GameViewController in storyBoard
Xcode 5.0.2 dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
It looks like your main target is linking to XCTest.framework as well as your test target. It should only be linked to the main target. 1) Go to Project settings 2) Go to your apps main target -> other linker flags 3) remove ‘-framework XCTest’ 4) make sure the ‘other linker flags’ field for your … Read more