PeterStaev / nativescript-photo-editor

🎨 Easily edit an image in your NativeScript app (crop, draw, etc)
Apache License 2.0
47 stars 15 forks source link

`iOSPhotoEditor` does not specify a Swift version #16

Closed relez closed 5 years ago

relez commented 5 years ago

Hi there, I am having this error when I try to build the app for iOS.

[19-03-06 16:22:39.246] (CLI) -iOSPhotoEditordoes not specify a Swift version and none of the targets (MyAppName) integrating it have theSWIFT_VERSIONattribute set. Please contact the author or set theSWIFT_VERSIONattribute in at least one of the targets that integrate this pod.

Any clue?

PeterStaev commented 5 years ago

Hey @relez , I have not seen this error with this plugin itself. But I see there are other users reporting problems with Swift pods. You can check this thread on SO for possible resolutions.

relez commented 5 years ago

Hu @PeterStaev, I was able to compile the app downgrading cocoapods to 1.5.3, but I got this warnings so might be helpful for the future:

warning: Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "iOSPhotoEditor" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'iOSPhotoEditor')
warning: Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "iOSPhotoEditor" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'iOSPhotoEditor')

My problem is that I can not build using Sidekick on the cloud because I cant downgrade the cocoapods version on the server, I hope there is a fix in the code for this.

Thanks!

throwingdarts commented 5 years ago

@PeterStaev I am having the same issue after upgrading iOS SDK now required by Apple. How do we downgrade cocoapods when we have to cloud build from a windows machine? I did find this about installing a plugin which did not work in my case.

PeterStaev commented 5 years ago

Guys, I'm working on updating the pod code from the upstream branch which makes the code Swift 4.2 compatible so it should fix these problems. Will let you know once the new version is on npm.

throwingdarts commented 5 years ago

Thank you @PeterStaev , it's holding up my ability to publish at the moment.

PeterStaev commented 5 years ago

New version on npm should resolve this problem.