I was having this exact same problem. Please make sure that you are on Xcode 7.3 and using Swift 2.2.
You can check your Swift version using xcrun swift -version
. Updating Xcode to 7.3 should also automatically update Swift.
Updating Xcode resolved this issue for me.
Related Posts:
- Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
- UITableView example for Swift
- Command CompileSwift failed with a nonzero exit code in Xcode 10
- Could not insert new outlet connection: Could not find any information for the class named
- libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
- libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
- Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
- Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
- A server with the specified hostname could not be found
- How do you create a Swift Date object?
- Xcode 10, Command CodeSign failed with a nonzero exit code
- Swift 4 Attempt to present ViewController whose view is not in the window hierarchy
- Xcode couldn’t find any provisioning profiles matching
- symbol(s) not found for architecture x86_64 in xcode 10
- Converting String to Int with Swift
- Where is the variable “code” in SKError defined?
- what does Error “Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)” mean?
- Date Format in Swift
- What the meaning of question mark ‘?’ in swift?
- “Could not find any information for class named ViewController”
- Xcode: Could not locate device support files
- Pod install is staying on “Setting up CocoaPods Master repo”
- Download Xcode simulator directly
- Swift Error: Variable used within its own initial value
- Alert”Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”
- Could not load NIB in bundle
- Prepare for Segue in Swift
- Xcode error “Could not find Developer Disk Image”
- How to play a sound using Swift?
- App iOS stuck on blank white screen when build release React Native
- iOS Simulator – Can’t log in with iCloud
- Load Animated gif in UIImageView IOS
- iOS: Random black screen when loading the app
- Drawing Hexagon grid in Cocos 2d-x
- iPhone system font
- How to write C++ on Mac?
- Where is redeem code for public link for TestFlight?
- Xcode – How to fix ‘NSUnknownKeyException’, reason: … this class is not key value coding-compliant for the key X” error?
- What are the difference between macOS and iOS?
- Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy
- Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy
- UIStackView before iOS 9.0
- CFNetwork SSLHandshake failed (-9824) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
- Is there a private messaging UI (inbox, sent, compose) framework for iOS?
- ‘strcmp’ was not declared in this scope
- malloc: *** error: incorrect checksum for freed object – object was probably modified after being freed
- NSURLErrorDomain error codes description
- Processing Symbol Files in Xcode
- Duplicate symbols for architecture x86_64 under Xcode
- Print: Entry, “:CFBundleIdentifier”, Does Not Exist
- Loaded nib but the ‘view’ outlet was not set
- Xcode error: This device is no longer connected
- Xcode 9 – “Fixed Width Constraints May Cause Clipping” and Other Localization Warnings
- iPhone 6 and 6 Plus Media Queries
- Got a EXC_CORPSE_NOTIFY symbol crash, how to track it?
- warning: ‘characters’ is deprecated: Please use String or Substring directly
- com.apple.WebKit.WebContent drops 113 error: Could not find specified service
- Code signing is required for product type ‘Application’ in SDK ‘iOS 10.0’ – StickerPackExtension requires a development team error
- What is the meaning of ‘No bundle URL present’ in react-native?
- Convert .cer to .p12
- Add a simple UIView as header of UICollectionView
- UIButton title text color
- Remove alpha channel in an image
- Storyboard warning: prototype table cells must have reuse identifiers
- Xcode: Download mp3 file
- mailto link with HTML body
- IOS home screen icons: where put and what size?
- Xcode is not currently available from the Software Update server
- Xcode is not currently available from the Software Update server
- Type of expression is ambiguous without more context Swift
- What does “Fatal error: Unexpectedly found nil while unwrapping an Optional value” mean?
- Error Running React Native App From Terminal (iOS)
- Add swipe left/right to web page, but use default swipe up/down
- MpMovie Player not rotating to land scape mode
- Xcode – Warning: Implicit declaration of function is invalid in C99
- How does String substring work in Swift
- what’s difference between array and tuple
- Declaration is only valid at file scope (extension)
- CFNetwork SSLHandshake failed iOS 9
- @selector() in Swift?
- Convert Int to String in Swift
- Compiling simple Hello World program on OS X via command line
- Can you Run Xcode in Linux?
- type any? has no subscript members
- Xcode 10 Error: Multiple commands produce
- LLVM Compiler 2.0: Warning with “using namespace std;”
- Swift 2: !, ? -” Value of optional type “…” not unwrapped”
- Two-dimensional array in Swift
- Failed to create provisioning profile
- Failed to launch macOS app built in Xcode
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- How to create a global variable?
- binary operator * cannot be applied to operands of type Int and Double
- Instance member cannot be used on type
- WordPress Iris Colour Picker adding iOS touch events
- Multisites, upload issues, and iOS!
- Apple push notification doesn’t work
- WordPress as webapp login session
- MP4 video on wordpress working on desktop, not on mobile devices
- How can I improve the performance of this query_posts loop?