New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got this error when I try to install. #81
Comments
To figure the correct path to the SDKs this script runs the command: xcrun --sdk iphonesimulator --show-sdk-path It looks like this is failing on your system. To test this, open a terminal window and copy and paste the above command into it. |
=>I run that command & i got this =>currently I am using Xcode version "9.2" & macOS version is "10.13.2" |
That's strange. OK, maybe |
I got the same error .. I found that my Xcode command line tool is not linked with the latest Xcode installed. I linked them and my script started working . |
@iOSKida once you selected the correct version of command line tools were you able to compile? |
@iosdevzone Yes.. I was able to compile |
@iOSKida -- good! Thanks for offering more information of this! |
Looks like the issue here was |
same issue on XCode 10.2 & swift 5 and i use 0.10.0 version (swift 4 on read me documentation), i 've done what you suggested but is not solve the issue, please help |
[!] /bin/bash -c
set -e
touch prepare_command.txt
echo 'Running prepare_command'
pwd
echo Running GenerateCommonCryptoModule
This was needed to ensure the correct Swift interpreter was
used in Xcode 8. Leaving it here, commented out, in case similar
issues occur when migrating to Swift 4.0.
#TC="--toolchain com.apple.dt.toolchain.Swift_2_3"
SWIFT="xcrun $TC swift"
$SWIFT ./GenerateCommonCryptoModule.swift macosx .
$SWIFT ./GenerateCommonCryptoModule.swift iphonesimulator .
$SWIFT ./GenerateCommonCryptoModule.swift iphoneos .
$SWIFT ./GenerateCommonCryptoModule.swift appletvsimulator .
$SWIFT ./GenerateCommonCryptoModule.swift appletvos .
$SWIFT ./GenerateCommonCryptoModule.swift watchsimulator .
$SWIFT ./GenerateCommonCryptoModule.swift watchos .
Running prepare_command
/Users/abhishek/Library/Caches/CocoaPods/Pods/Release/IDZSwiftCommonCrypto/0.10.0-4eef2
Running GenerateCommonCryptoModule
SDK: macosx
SDK Version: 10.13
SDK Path: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Successfully created module ./Frameworks/macosx/CommonCrypto.framework/module.map
ERROR: ERROR: Failed to determine SDK version for iphonesimulator
./GenerateCommonCryptoModule.swift:15:34: warning: 'characters' is deprecated: Please use String or Substring directly
let args: [String] = command.characters.split { $0 == " " }.map(String.init)
^
./GenerateCommonCryptoModule.swift:15:34: warning: 'characters' is deprecated: Please use String or Substring directly
let args: [String] = command.characters.split { $0 == " " }.map(String.init)
^
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: unable to lookup item 'SDKVersion' in SDK 'iphonesimulator'
The text was updated successfully, but these errors were encountered: