Adding RunLoop.main.run()
to the end of the file is one option. More info on another approach using a semaphore here
More Related Contents:
- Swift Protocol Extensions overriding
- Swift debugger does not show variable values when importing ObjC framework
- How can two people work on a single project in Xcode on two computers? [closed]
- Expected Declaration Error using Swift
- Error “Thread 1: breakpoint 2.1”
- How to enable NSZombie in Xcode?
- Download & Install Xcode version without Premium Developer Account [duplicate]
- How to “Delete derived data” in Xcode?
- “Use of undeclared type” in Swift, even though type is internal, and exists in same module
- Xcode 10 seems to break com.apple.commcenter.coretelephony.xpc
- Install claimed to have succeeded, but application could not be found on device
- Xcode Beta 6.1 and Xcode 6 GM stuck indexing for weird reason
- How do I rename a project in Xcode 5?
- Xcode 4.6.2 app crashes on every second run
- NSTimer not firing when NSMenu is open in Swift
- View array in LLDB: equivalent of GDB’s ‘@’ operator in Xcode 4.1
- Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments
- How to solve “Application failed codesign verification” when uploading to iTunes Connect?
- What is a target dependency?
- A valid provisioning profile for this executable was not found… (again)
- xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist
- Find method references in Xcode
- Xcode 12 using Firebase pods. Lexical or Preprocessor issue. “pb.h’ file not found with include; use “quotes” instead”?
- How can I force Xcode to use a custom compiler?
- Moving Files into a Real Folder in Xcode
- xcode 8 error denied by service delegate (SBMainWorkspace)
- How can I run older Xcode version on new macOS version?
- Xcode 10+: how to switch to legacy build system?
- Shared iAd banner for UITabBarController based app using XCode 4 with storyboard
- Xcode 8 Warning “Instance method nearly matches optional requirement”