I am trying to publish SDK into Cocoa pods.
(pod spec lint –verbose TravelSafelyBoneshell.podspec)
When i run the above command then its showing me below error:
Testing with `xcodebuild`.
-> Travel (1.0.29)
- WARN | license: Invalid license type.
- WARN | [iOS] license: Unable to find a license file
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | [iOS] xcodebuild: note: Building targets in dependency order
- NOTE | [iOS] xcodebuild: note: Target dependency graph (3 targets)
- NOTE | [iOS] xcodebuild: error: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead (in target 'Travel' from project 'Pods')
2
Answers
You can use this
and
in terminal
In Xcode 15, Apple made a modification to the variable that points to the default toolchain location, replacing $DT_TOOLCHAIN_DIR with $TOOLCHAIN_DIR. If your project or target relies on the previous variable, you should update it to use $TOOLCHAIN_DIR.
To perform this replacement, you can add the following code snippet at the end of your project’s Podfile:
After making this change in your Podfile, you will need to install the pods again via the terminal using the command: