cloudinary_ios: Unable to compile on Xcode 9 with iOS11 simulator
Hello,
I am trying to compile on Xcode9(final release) with the target simulator as iOS11, but I keep getting the missing CLDCrypto error. None of the solutions posted in the other issues worked for me.
What did work was making the following change change in the module.map file in the CLDCrypto.framework -
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/CommonCrypto/CommonCrypto.h"
to
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/CommonCrypto/CommonCrypto.h"
I had to make the same change in the iphoneos folder as well to run it on my device. While this works, I feel it’s not the ideal solution and I wouldn’t ideally want to make any change in the library’s source itself.
Any reason we have a version(10.3) set here? Instead of just iPhoneSimulator.sdk ? Any other solution to fix this issue?
Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 21 (1 by maintainers)
@tditchek thanks ! I actually was not clearing the previous pods correctly. I found this set of commands to clean the pods an reinstall them again.
rm -rf ~/Library/Caches/CocoaPods; rm -rf Pods; rm -rf ~/Library/Developer/Xcode/DerivedData/*; pod deintegrate; pod setup; pod install;The first is that Right now if you are using Swift 4, you need to do this:
pod ‘Cloudinary’, ‘~> 2.0.2’
And then add this before the last end statement somewhere in the taret ‘YourAppName’ do:
post_install do |installer| installer.pods_project.targets.each do |target| if target.name == ‘Cloudinary’ target.build_configurations.each do |config| config.build_settings[‘SWIFT_VERSION’] = ‘3.2’ end end end end
I still would like to get a Swift 4 update, but this works for now with only a couple warnings.
Hey, guys. I see that you all found a workaround for this. We’re working to find a more permanent solution. We’ll update here on any progress in this direction.
Cloudinary is the most core library we used in our app so Please update the new release for swift 4 we will wait for some good news thanks in advance