iOS errors

Xcode, Swift, CocoaPods and code-signing errors.

CodeErrorWhat it means
SIGABRT Thread 1: signal SIGABRT (app crashes with "libc++abi: terminating") The app deliberately aborted — an uncaught exception, failed assertion or fatalError. The console above the c…
ITMS-91053 ITMS-91053: Missing API declaration — Your app's code references required reason APIs (privacy manifest) The app (or an SDK in it) uses “required reason” APIs like UserDefaults, file timestamps or disk space withou…
Cannot convert value of type Swift: Cannot convert value of type 'X' to expected argument type 'Y' The value’s type doesn’t match what the function or property expects.
NSURLErrorDomain Code=-1001 Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." The server didn’t respond within URLSession’s timeout (60 s default) — slow server, unreachable host on this…
Main Thread Checker Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout] UIKit was used from a background thread; UI must only be touched on the main thread.
dyld: Library not loaded dyld: Library not loaded: @rpath/X.framework/X — Reason: image not found (crash on launch) A dynamic framework the app needs at runtime isn’t embedded in the app bundle, so it crashes at launch.
CocoaPods compatible versions CocoaPods could not find compatible versions for pod pod install can’t satisfy the version constraints — outdated spec repo, a higher deployment target required,…
NSURLErrorDomain Code=-1009 Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." URLSession couldn’t reach the network — the device is offline, the app’s cellular data is disabled, or the si…
Unexpectedly found nil Fatal error: Unexpectedly found nil while unwrapping an Optional value Swift force-unwrapped (`!`) an optional that was nil, crashing the app.
Multiple commands produce Xcode: Multiple commands produce '…/Info.plist' (or another file) Two build steps write the same output file — usually Info.plist or an asset added to “Copy Bundle Resources”,…
ITMS-90725 ITMS-90725: SDK version issue — This app was built with the iOS 17.x SDK. All iOS apps submitted to the App Store must be built with the iOS 18 SDK or later App Store Connect requires uploads to be built with a recent Xcode/iOS SDK (raised every spring).
integrity could not be verified Unable to Install "App": This app cannot be installed because its integrity could not be verified iOS rejected the app because its signature doesn’t validate for this device — expired/revoked certificate, ad…
Modifying state during view update SwiftUI: Modifying state during view update, this will cause undefined behavior A @State/@Published value was changed while SwiftUI was computing a view’s body.
Publishing changes from background threads SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread An ObservableObject’s @Published property was updated from a background thread.
Undefined symbols for architecture Undefined symbol(s) for architecture arm64 — linker command failed with exit code 1 The linker can’t find the implementation of a symbol your code uses — a missing framework/library, a file not…
No signing certificate Xcode: No signing certificate "iOS Development" found Xcode can’t find a valid code-signing certificate + private key for the selected team in your keychain.
CDN: trunk URL couldn't be downloaded [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/... CocoaPods couldn’t reach its CDN spec repo — network/proxy issues, rate limiting, or an outdated CocoaPods.
unable to type-check this expression in reasonable time Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions A long expression (often in a SwiftUI body) has too many possible type combinations for the compiler — or hid…
Unable to find a specification [!] Unable to find a specification for `X` depended upon by `Y` CocoaPods can’t find the pod (or version) in its spec repos — stale local specs, a private spec repo not adde…
Type of expression is ambiguous Swift: Type of expression is ambiguous without a type annotation (more context) The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the e…
EXC_BAD_ACCESS Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) The app accessed memory it shouldn’t — a dangling pointer, released object, unsafe pointer misuse, a data rac…
unable to dequeue a cell with identifier unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard The table/collection view was asked for a reusable cell identifier that was never registered.
ITMS-90206 ITMS-90206: Invalid Bundle. The bundle at 'App.appex' contains disallowed file 'Frameworks' An app extension (or framework) embeds its own Frameworks folder; only the main app may embed frameworks.
ITMS-90683 ITMS-90683: Missing purpose string in Info.plist (NSCameraUsageDescription etc.) The binary references a privacy-sensitive API, but Info.plist lacks the matching usage description.
Cannot preview in this file SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build Xcode Previews couldn’t build or run the view — compile errors elsewhere, a crash in preview data, or preview…
PhaseScriptExecution Xcode: Command PhaseScriptExecution failed with a nonzero exit code A Run Script build phase (CocoaPods, React Native, Flutter, SwiftLint, Crashlytics…) failed. The real error i…
Failed to prepare device for development Xcode: Failed to prepare device for development / iPhone is not available. Please reconnect the device Xcode couldn’t set up the device — usually the device’s iOS version is newer than Xcode supports, Developer M…
invalid active developer path xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun The Xcode Command Line Tools are missing or broken — typical right after a macOS update.
ITMS-90717 ITMS-90717: Invalid App Store Icon. The App Store Icon in the asset catalog can't be transparent nor contain an alpha channel The 1024×1024 App Store icon has an alpha channel/transparency, which App Store Connect rejects.
DecodingError Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted JSONDecoder couldn’t map the JSON to your Codable type — a key is missing, a value has a different type or is…
is only available in iOS x or newer Swift: 'X' is only available in iOS 16.0 or newer You used an API that requires a newer iOS than your deployment target.
not allowed to query for scheme -canOpenURL: failed for URL: "x://" - error: "This app is not allowed to query for scheme x" The app called canOpenURL for a scheme not listed in LSApplicationQueriesSchemes in Info.plist.
Command CodeSign failed Command CodeSign failed with a nonzero exit code (errSecInternalComponent / resource fork, Finder information not allowed) codesign failed — the keychain is locked (CI/SSH), the private key is inaccessible, or files carry extended a…
Failed to register bundle identifier Failed to register bundle identifier: The app identifier "com.x" cannot be registered to your development team because it is not available Another developer team already owns that bundle identifier, so Xcode can’t create it for your team.
library not found for -lPods ld: library not found for -lPods-AppName / framework not found Pods_App The linker can’t find the CocoaPods library — usually because the .xcodeproj was opened instead of the .xcwor…
NSUnknownKeyException NSUnknownKeyException: this class is not key value coding-compliant for the key x A storyboard/XIB has a connection to an outlet or action that no longer exists in the class (renamed or delet…
doesn't include the currently selected device Provisioning profile "x" doesn't include the currently selected device The development profile doesn’t list this iPhone’s UDID, so Xcode can’t install the build on it.
Main actor-isolated Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races Strict concurrency checking found code that accesses main-actor state from another isolation domain, or passe…
Could not cast value of type Swift: Could not cast value of type 'X' to 'Y' A force cast (as!) failed because the object isn’t the expected type.
No such module Swift: No such module 'X' (module not found) Xcode can’t find a Swift package, pod or framework you import.
attempted to access privacy-sensitive data without a usage description This app has crashed because it attempted to access privacy-sensitive data without a usage description The app requested camera, photos, microphone, location, contacts, etc. without the required NS…UsageDescripti…
Unable to simultaneously satisfy constraints Auto Layout: Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want Two or more Auto Layout constraints conflict; UIKit breaks one to recover and logs this message.
built for iOS, linking for simulator Building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 A library contains device-only arm64 code; Apple Silicon simulators also run arm64 and need a separate simula…
Signing requires a development team Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor No Apple developer team is selected for the target, so Xcode can’t sign the app.
Index out of range Swift: Fatal error: Index out of range Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a ta…
requires explicit use of 'self' Swift: Reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit In an escaping closure inside a class, Swift requires self. to make the capture (and potential retain cycle)…
Untrusted Developer Could not launch "App": process launch failed: Security / Untrusted Developer The app installed, but iOS won’t run it because the developer certificate hasn’t been trusted on the device (…
doesn't include signing certificate Provisioning profile "x" doesn't include signing certificate "Apple Development: Name (ID)" The profile was created with a different certificate than the one installed in your keychain.
Escaping closure captures mutating 'self' Swift: Escaping closure captures mutating 'self' parameter A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.
ATS App Transport Security has blocked a cleartext HTTP resource load iOS blocked an `http://` request (or a weak-TLS HTTPS one) because App Transport Security requires secure con…
Redundant Binary Upload ITMS-4238: Redundant Binary Upload. You've already uploaded a build with build number 'x' for version number 'y' The build number (CFBundleVersion) has already been used for that version in App Store Connect.