Here are some things that can fix this (in increasing order of difficulty):
- Clean the project (Product > Clean)
- Manually paste in
@IBOutlet weak var viewName: UIView! // or @IBAction func viewTapped(_ sender: Any) { }
and control drag to it. (Change type as needed.) Also see this. - Completely close Xcode and restart your project.
- Delete the Derived Data folder (Go to Xcode > Preferences > Locations and click the gray arrow by the Derived Data folder. Then delete your project folder.)
- Click delete on the class, remove reference (not Move to Trash), and add it back again. (see this answer)
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
- Always get build error : No such module ‘Alamofire’
- “Could not find any information for class named ViewController”
- 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 – How to fix ‘NSUnknownKeyException’, reason: … this class is not key value coding-compliant for the key X” error?
- 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?
- Loaded nib but the ‘view’ outlet was not set
- Xcode 9 – “Fixed Width Constraints May Cause Clipping” and Other Localization Warnings
- Xcode: Could not locate device support files
- 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?
- 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
- Xcode error: This device is no longer connected
- 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
- Pod install is staying on “Setting up CocoaPods Master repo”
- Xcode: Download mp3 file
- mailto link with HTML body
- IOS home screen icons: where put and what size?
- Visual List of iOS Fonts?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Xcode build failure “Undefined symbols for architecture x86_64”
- Strange error nw_protocol_get_quic_image_block_invoke dlopen libquic failed
- MpMovie Player not rotating to land scape mode
- Python Error io.UnsupportedOperation: not readable
- How do you update Xcode on OSX to the latest version?
- react-native: command not found
- C++ on mac : linker command failed with exit code 1 (use -v to see invocation)
- How to use iMonkey in an iOS app
- How to update Xcode from command line
- Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) standard C memory issue
- How to fix Error: this class is not key value coding-compliant for the key tableView.’
- CFNetwork SSLHandshake failed iOS 9
- Can you Run Xcode in Linux?
- type any? has no subscript members
- Xcode 10 Error: Multiple commands produce
- Why am I getting the “Expression is not assignable” error?
- Swift 2: !, ? -” Value of optional type “…” not unwrapped”
- Failed to create provisioning profile
- invalid use of ‘this’ outside of a non-static member function error?
- What are the supported Swift String format specifiers?
- socket.io – ReferenceError: io is not defined
- How to download Xcode DMG or XIP file?
- Error in Swift class: Property not initialized at super.init call
- How to create a global variable?
- “Unrecognized selector sent to instance” in swift
- Swift: print() vs println() vs NSLog()
- How to format code in Xcode?
- How to query WordPress from another application?
- Whats the best Practice for using a different Theme for WebView Apps?
- Download user generated data from WordPress
- IOS Ventura Safari 16.3 position fixed elements goes above scroll bar