Clang Error: Reference to NSUTF8StringEncoding is ambiguous
Please import below framework in your file. #import <UIKit/UIKit.h>
Please import below framework in your file. #import <UIKit/UIKit.h>
let me start with this script (for Xcode 4.2.1), Open an XCode project at /this/path/project.xcodeproj (done) Duplicate an existing target and rename it (not implemented) Edit the Build Settings of the new target (done) Add a group to the Source and Resources section, then rename them (done) Add source files to the groups, and add … Read more
See the script phase documentation for details, especially the “Specify the Input and Output Files for Your Script” section. You need to edit your build phase and specify which files your script is using as input (if any) and which files it’s going to generate. Using this information, the Xcode build process can determine whether … Read more
I have the same issue, but there is something you can do to, 1) Go in Product -> Scheme -> Edit Scheme 2) Run Section on the left, select Argument Tab and in Environment Variable put this. OS_ACTIVITY_MODE to value : disable. For more information please find the below screenshot. This will get rid of … Read more
Xcode’s UI can be changed to completely dark with Xcode 10 running on macOS Mojave. Just go into System Preferences -> General -> Under Appearance -> Click the dark mode
Assuming that you are talking about iOS apps: Xcode shows only the .app built for the device in the Products folder. So if you clean the product and then build for Simulator, it will still be red. If you build for the device, Xcode will show it and “show in finder” also works.
Check if all files are available. Targets -> Build Phases -> Compile Sources If you see faint files, then they need to be removed or added.
Assuming you want a nice screenshot with the device the following worked for me, from Swany’s answer on this Apple forum thread : In a terminal, disable shadows on Screenshots with the following command: defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer Take a screenshot with Screencapture, either by selecting a region without the Toolbar, … Read more
Choose objective-c class and then select UIViewController as subclass. Apple moved all objective-c class templates into the “Objective-C class” template. They have custom functionality, like “With xib for user interface”, there too.