Xcode right pane (utilities pane) not applicable?
Storyboard can’t be opened at the start. Open any file (like AppDelegate) but not storyboard. Then close Xcode. Open xcode again. Works in Xcode 7.2
Storyboard can’t be opened at the start. Open any file (like AppDelegate) but not storyboard. Then close Xcode. Open xcode again. Works in Xcode 7.2
In xcode 4.1 (don’t know if this works in previous versions) I write #warning TODO: fix this later… to get a compile warning or #error FIXME: fix now! to get a compile error. I also add these to the code snippet library to make it really ease to add todos.
Preprocessor macros will not work, you need to check the environment at runtime. Objective-c static BOOL isRunningTests(void) { NSDictionary* environment = [[NSProcessInfo processInfo] environment]; return (environment[@”XCTestConfigurationFilePath”] != nil); } Swift var unitTesting : Bool { return ProcessInfo.processInfo.environment[“XCTestConfigurationFilePath”] != nil } (Updated for Xcode 11)
That’s correct, you need to add the Pods directory to your .gitignore 1) Remove your files from your github repository: git rm -r Pods/ and don’t forget to commit and push 2) Create a gitignore file: Open terminal and go through your project folder where the .git folder is located Type touch .gitignore Type echo … Read more
The ~/Library/Developer/Xcode/iOS DeviceSupport folder is basically only needed to symbolicate crash logs. You could completely purge the entire folder. Of course the next time you connect one of your devices, Xcode would redownload the symbol data from the device. I clean out that folder once a year or so by deleting folders for versions of … Read more
You can try: @available(iOS, deprecated: 9.0) or this: #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wdeprecated-declarations”
I just created a repository with part of IntelliJ bindings migrated to an xCode template(including the custom duplicate line). Feel free to give it a look, try it and keep improving it. Sadly the only way we can achieve this is doing it manually. https://github.com/FrangSierra/Xcode-IntelliJ-Keybinds There is also another repository with the color theme of … Read more
There could be some corrupt files in your build folder. Try running Clean (⌘+⇧+K) and Clean build folder… ( ⌘+⇧+⌥+K ) and rebuild your application.
What solved it for me is setting the “Enable Clang Module Debugging” in Build Setting to NO.
I have been struggling with this for some time now. If you don’t need the Apple Watch, instead of turning it off completely, you can also turn on airplane mode if configured correctly. On your watch, go to Settings App → Airplane Mode. Make sure that both WIFI and Bluetooth switches are turned off! When … Read more