-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[Update] Google-Maps-iOS-SDK (1.1.0) #1314
Conversation
Looks like there may be some issues with this with
|
out of curiousity, how do you use this cocoapod? Google-Maps-iOS-SDK1.0.2. I've been trying, but have no ideas. edit:
|
What version of Cocoapods are you using ( |
updated to while installing, the |
That's my point that version |
ah. sorry. should of read more carefully - frustrating day with rails and ios today. thanks for the quick response! |
No worries 😄 if @punycode gets this version working with |
It will work with these values: framework_path = 'GoogleMaps-iOS-1.1.0/GoogleMaps.framework'
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Google-Maps-iOS-SDK/GoogleMaps-iOS-1.1.0/"' } As the file unzips to the folder |
@GWStuartClift While it's true that it will work with those values for installing the pod, it still changes how the files are to be imported in the xcode project. Previously it would be How can we flatten the downloaded zip, or only preserve paths from the |
Because the framework search path is set you should be able to just import the framework like previously. |
Conflicts: Google-Maps-iOS-SDK/1.1.0/Google-Maps-iOS-SDK.podspec
Still hitting some errors:
|
The specs will still not work with 0.16.3. Making them bend to the changed behaviour in ZIP flattening would be just an ugly hack in the podspec. As an alternative i have submitted a proposed change to CocoaPods (see CocoaPods/CocoaPods#814). I already upgraded these specs. On older cocoapods (< 0.16.3) versions, they will still work as expected, the hopefully next cocoapods version will incorporate my proposed change and make them work there too. Update: Also try the cocoapods from this pull request. Though i added a RSpec for the new feature, i would appreciate if someone else tried out the new flattening option for ZIP-files |
The specs should be updated for the new version even if it is not going to be their final state. I don't think the changes needed really fall under 'ugly hack' and whatever ugliness that is there is hidden inside the spec file which is not really designed for the consumer's eyes. The biggest problem with the flattening change is that is highlights the dependency on the source's vendor providing a CocoaPods friendly tag or archive. |
I really disagree with this approach. Right now several specs are probably broken, that relied on the previous flattening behaviour. If we start changing the spec now to conform to 0.16.3 behaviour, everyone using a cocoapods version before 0.16.3 will be out of luck too. It won't work on their machines. One might argue, that those people should simply upgrade their cocoapods, but then perhaps other specs, which we don't know about right now, will break too. A quick and dirty scan for potentially affected Pods gives this result:
Should we change all of them until this issue is resolved or simply declare 0.16.3 as broken for ZIP-based pods relying on the flattening behaviour? I really would prefer having a 0.16.4 soon and simply add the |
I don't think its ever a good idea to rely upon the implicit behaviour of the current version of the delivery system, all locations and files should be explicitly defined, this surely is the purpose of a specification; Fundamentally I agree with what you are trying to achieve and I have no argument against releasing a 0.16.4 with an option to flatten; providing a potentially higher probability of compatibility. However, I can also see how this is not always easy to achieve on a distributed open source project. |
The patch in CocoaPods/CocoaPods#814 has been merged and released, people can now use the |
I think the patch from https://github.com/synyx/Specs/commit/68fdd5869e8442983d29bbc872f1e6ebd84f0017 still needs applying now the flatten option is available. |
@punycode do you have a pull request for those patches? |
I have manually patched those changes live. Sanity is restored. Thanks everyone. |
No description provided.