Posts

Showing posts with the label Xcode

Can You Run Xcode In Linux?

Answer : The low-level toolchain for Xcode (the gcc compiler family, the gdb debugger, etc.) is all open source and common to Unix and Linux platforms. But the IDE--the editor, project management, indexing, navigation, build system, graphical debugger, visual data modeling, SCM system, refactoring, project snapshots, etc.--is a Mac OS X Cocoa application, and is not portable. Nobody suggested Vagrant yet, so here it is, Vagrant box for OSX vagrant init https://vagrant-osx.nyc3.digitaloceanspaces.com/osx-sierra-0.3.1.box vagrant up and you have a MACOS virtual machine. But according to Apple's EULA, you still need to run it on MacOS hardware :D But anywhere, here's one to all of you geeks who wiped MacOS and installed Ubuntu :D Unfortunately, you can't run the editors from inside using SSH X-forwarding option. I really wanted to comment, not answer. But just to be precise, OSX is not based on BSD, it is an evolution of NeXTStep. The NeXTStep OS utilizes the Ma...

Adjusting The Xcode IPhone Simulator Scale And Size

Image
Answer : With Xcode 9 - Simulator, you can pick & drag any corner of simulator to resize it and set according to your requirement. Look at this snapshot. Note: With Xcode 9.1+, Simulator scale options are changed. Keyboard short-keys : According to Xcode 9.1+ Physical Size ⌘ 1 command + 1 Pixel Accurate ⌘ 2 command + 2 According to Xcode 9 50% Scale ⌘ 1 command + 1 100% Scale ⌘ 2 command + 2 200% Scale ⌘ 3 command + 3 Simulator scale options from Xcode Menu : Xcode 9.1+: Menubar ▶ Window ▶ "Here, options available change simulator scale" ( Physical Size & Pixel Accurate ) Pixel Accurate : Resizes your simulator to actual (Physical) device's pixels, if your mac system display screen size (pixel) supports that much high resolution, else this option will remain disabled. Tip : rotate simulator ( ⌘ + ← or ⌘ + → ), if Pixel Accurate is disabled. It may be ena...

"Connect Via Network" Wireless Debugging Not Working Xcode 9

Image
Answer : I was having the same issue and performed the following steps to get things working: Open "Devices and Simulators" Connect your device and check the "Connect via network" checkbox Disconnect your device Right click listing for your device in the left hand column (Under Disconnected) Select "Connect via IP Address.." and enter your device's IP address After numerous Wi-fi resets and device restarts (for iOS 12, Xcode 10) I found the solution for me was: Disconnect iOS device from Mac Go to Settings -> Develop on the iOS device Tap "Clear Trusted Computers" Reconnect iOS device to Mac via cable On iOS device tap "Trust This Computer" and enter passcode Go to Device Manager in Xcode and enable "Connect Via Network" The network symbol appeared and I was good to go.

Can't Update Xcode 11

Answer : Always working workaround (Manual download) Download directly from Apple: Latest Release version or Latest Beta version or Any version you need. And all other downloadable contents Then extract and move it where you like. This has so many benefits comparing to appstore update. (like the ability to resume download, not replacing the old one, not wasting hidden directories and etc.) Note that you should use safari to download it. Apple suggested workaround (Force App Store to redownload) Since This is Known Issues Xcode may fail to update from the Mac App Store after updating to macOS Catalina. (56061273) Apple suggest this: To trigger a new download you can delete the existing Xcode.app or temporarily change the file extension so it is no longer visible to the App Store.

Apple - Can't Start Xcode - Stuck On Installing State

Image
Answer : There is a small progress bar under the Launchpad icon in the Menu Bar. You can also see the current download progress by hovering over the icon. Wait for it to end. In the Updates tab of the Apple App Store, after waiting 1 hour for "2 minutes left," I hit CMD+R to refresh and that seemed to "jump start" it. It finished within 60s after that. Could have been coincidence though (YMMV). In launch pad hold the Xcode icon until the X appears and click the X to delete Xcode then go back to the app store and get a fresh copy.

Cannot Find FileMerge (opendiff Tool) But I Have Xcode 4.6 Installed

Answer : FileMerge is located at within Xcode. From the command-line: cd /Applications/Xcode.app/Contents/Applications/ open . Go into that directory once it opens: Right-click on the app Choose "Make alias" Move that alias to your Applications directory You're all set. Strange. "XCode 4.5, where is FileMerge ?" suggests: The FileMerge that is bundled with Xcode 4.5 doesn't work as a standalone application. I tried compressing it from the application bundle. I was able to expand it to show the FileMerge app on the desktop. But when I tried to run it I got an error saying it couldn't be opened. Apple's developer downloads site has every version of Xcode. You could try trashing your current version of Xcode 4.5, downloading Xcode 4.5 from the developer downloads site, and see if FileMerge is there. If not, you can download Xcode 4.4 and see if that has FileMerge. Indeed, I downloaded a fresh new install o...

Cannot Install Cocoapods - No Podfile Found In The Project Directory

Answer : Steps to add CocoaPods to manage dependencies in your project: sudo gem install cocoapods -> This installs CocoaPods as a piece of software on your machine. Go to the root of your project directory and execute pod init -> This will add a base Podfile to your project. Add the external dependencies that you have to this Podfile by editing it. Run pod install which will fetch all the external dependencies mentioned by you, and associate it with a .xcworkspace file of your project. This .xcworkspace file will be generated for you if you already do not have one. From here on, you should use .xcworkspace file instead of .xcproject / .xcodeproj . Example Podfile Syntax: target 'MyApp' do pod 'AFNetworking', '~> 3.0' end Where AFNetworking is the pod and 3.0 is the specific version that I want to install. Documentation: Using CocoaPods If you want to add a library from GitHub to your own project, after installing gems, ...