Skip to content
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

Problem when install pod #93

Closed
KhairulRijl opened this issue Apr 12, 2019 · 9 comments
Closed

Problem when install pod #93

KhairulRijl opened this issue Apr 12, 2019 · 9 comments
Assignees

Comments

@KhairulRijl
Copy link

I have problem like this on xcode 10.2 & swift 5, using 0.10.0 version because other library requiered that

`[!] /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/khairulrijal/Library/Caches/CocoaPods/Pods/Release/IDZSwiftCommonCrypto/0.10.0-4eef2
Running GenerateCommonCryptoModule
./GenerateCommonCryptoModule.swift:15:34: error: 'characters' is unavailable: Please use String directly
let args: [String] = command.characters.split { $0 == " " }.map(String.init)
^~~~~~~~~~
Swift.String:5:16: note: 'characters' was obsoleted in Swift 5.0
public var characters: String { get set }
^
`

@iosdevzone
Copy link
Owner

Hi there, sorry for the delay. Just back from vacation, I'll try to take a look at this over the next few days. Thanks for bringing this problem to my attention!

@iosdevzone iosdevzone self-assigned this Apr 16, 2019
@alexander-larsson
Copy link

https://github.com/CocoaPods/Specs/tree/9543734012238c33ea018af5a4381459c13f0916/Specs/1/c/2/IDZSwiftCommonCrypto

You haven't added version 0.11.0 to the master Pod repo. (Or however that works) You can't install version 0.11.0 through CocoaPods. Maybe that is a quick fix or you need to make a 0.12.0 version to support Swift 5.

@alexander-larsson
Copy link

Sorry seems like there is a version 0.11.3 available though CocoaPods somehow. I usually just look at the releases page on GitHub and assume the CocoaPods releases are the same numbers. This issue is resolved for me with 0.11.3 version of the pod 🙂

@wdcurry
Copy link

wdcurry commented May 22, 2019

This is still happening at my end.

@iosdevzone
Copy link
Owner

iosdevzone commented May 22, 2019

@wdcurry What combination of Xcode/Swift/IDZSwiftCommonCrypto are you using? Have you updated Xcode recently? If so, did you clear your CocoaPods cache? Also please send the output you are seeing. Hopefully this will allow us get to the bottom of this. Thanks!

@wdcurry
Copy link

wdcurry commented May 22, 2019

I am typically always at the latest bits but admit to not clearing the pod cache. I can try that shortly, thank you.

@iosdevzone
Copy link
Owner

@wdcurry Hopefully that will solve the problem. The podspec has not contained a prepare_command for quite some time, so I'm a bit confused about how this could be happening. I appreciate any further info you can give me!

@wdcurry
Copy link

wdcurry commented May 22, 2019

I think I will leave this for now, as I have numerous projects that get touchy with such things. I think I have another vector to encryption success, but thank you!

@iosdevzone
Copy link
Owner

OK, well, sorry I could not solve the problem for you. I'll close this issue out for the moment, but if you chose to revisit just let me know. Good luck with your project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants