Xcode 9: Swift dependency analysis error
It tells that you need to specify the swift version in Build Settings. Just click project and go to Build settings (not the target) and set "Swift Language Version" to Swift 3.2 or Swift 4. Here you have an screenshot :)
Build error, dependency in target requires explicit declaration
Actually the error message already tells you what you have to do:
add
.product(name: "NordicMesh", package: "IOS-nRF-Mesh-Library")
to the dependencies array:
... dependencies: [
.product(name: "NordicMesh", package: "IOS-nRF-Mesh-Library") //<<< like this
//other dependencies
]),
Xcode 13 error: input file [...] was modified during the build
I'm debugging a similar issue in R.swift, I think I've found the cause of the issue.
Xcode 13 appears to execute Run Script build phases during index builds. This can cause a file to be written to by an index pass, in parallel with a build.
To check if this is happening for you, add this to your build script: say $ACTION
On Xcode 12, it only says "build", but in Xcode 13 I hear it saying "indexbuild" during compilation, whenever I save .swift files or otherwise navigate through my code.
To prevent your script from running during indexing, add this check:
if [ $ACTION != "indexbuild" ]; then
# your script here
fi
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift
The error is pretty clear.
- In the project navigator select the (blue) project
- Select the target which uses Swift
- Click on
Build Settings
- Scroll down to
Swift Language Version
or in the search field typeSwift L
- In the popup of the setting select the language version
Related Topics
Mirror Not Working in Swift When Iterating Through Children of an Objective-C Object
How to Pass a Swift Object to JavaScript (Wkwebview/Swift)
Error "Call Can Throw, But Is Not Marked with 'Try' and the Error Is Not Handled"
Records, Zone Doesn't Displayed in Dashboard and Delete Zone Issue Cloudkit
Delegates: Pass Data Without Segue
How to Convert Duration Form Youtube API in Swift
Generate a Hmac Swift Sdk8.3 Using Cchmac()
Which View Controller Should I Pass in My Swift Native Code for a Flutter Plugin
Transfer Gestures on a Uiview to a Uitableview in Swift - iOS
Swift Calling Setnavigationbarhidden But View Wont Move to Top
Your Credentials Do Not Allow Access to This Resource Twitter API Error
Running an iOS7 Project Under Xcode 6 - Image Assets Don't Show Up
Sorting Struct Array in Swift 4
Subview Gesture Recognizer Not Being Called
Cannot Access Appdelegate While Testing Xcode Project
Stream Data from Network in Avaudioengine, Is It Possible