Add Podspec #7

Merged
merged 1 commit into from Aug 19, 2015

Conversation

Projects
None yet
2 participants
@lrossi
Contributor

lrossi commented Aug 19, 2015

Adds a Podspec file for CocoaPods (https://cocoapods.org) to simplify the integration of the library in iOS projects.

jmcnamara added a commit that referenced this pull request Aug 19, 2015

@jmcnamara jmcnamara merged commit 712c49b into jmcnamara:master Aug 19, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Aug 19, 2015

Owner

Thanks for that.

John.

Owner

jmcnamara commented Aug 19, 2015

Thanks for that.

John.

@lrossi lrossi deleted the lrossi:cocoapods branch Aug 20, 2015

@lrossi

This comment has been minimized.

Show comment
Hide comment
@lrossi

lrossi Aug 20, 2015

Contributor

Thanks for merging. The podspec should now be pushed to the CocoaPods trunk so that the library will be available from the main CocoaPods distribution channel.

If you want, I can do this and keep the podspec in sync with subsequent library updates. (Of course, I would add you as owner in the CocoaPods trunk).

Otherwise, if you prefer you can push the podspec yourself:

https://guides.cocoapods.org/making/getting-setup-with-trunk

Thank you

Contributor

lrossi commented Aug 20, 2015

Thanks for merging. The podspec should now be pushed to the CocoaPods trunk so that the library will be available from the main CocoaPods distribution channel.

If you want, I can do this and keep the podspec in sync with subsequent library updates. (Of course, I would add you as owner in the CocoaPods trunk).

Otherwise, if you prefer you can push the podspec yourself:

https://guides.cocoapods.org/making/getting-setup-with-trunk

Thank you

@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Aug 20, 2015

Owner

Hi,

I'll do it and make it part of the release process in future.

BTW, did you have any issues with the zlib version used by the library and the default version on iOS? I had some bug report about that.

John

Owner

jmcnamara commented Aug 20, 2015

Hi,

I'll do it and make it part of the release process in future.

BTW, did you have any issues with the zlib version used by the library and the default version on iOS? I had some bug report about that.

John

@lrossi

This comment has been minimized.

Show comment
Hide comment
@lrossi

lrossi Aug 21, 2015

Contributor

Hi John,

perfect, thanks!

As regards compiling on iOS, I only encountered an issue with missing type z_crc_t (similar to #5) and I circumvented it by adding the NOCRYPT=1 and NOUNCRYPT=1 flags as suggested here: http://kvurd.com/blog/building-libxlsxwriter-for-ios/

Beside that, I was able to compile the included minzip dependency without needing to downgrade zlib. I’ve tested the pod on iOS 8 and I’m using it to generate some Excel files in an app I’m working on, and it works great. Oh by the way, thanks for such an amazing library :)

If you have access to an OS X installation with Xcode installed, you can install CocoaPods and try the pod compilation by running:

pod lib lint --verbose libxlsxwriter.podspec

Also, if you are interested in it, I was thinking about creating a sample iOS project to go along with the pod. Something like a simple app where you can select among the examples you already provided and then see the output through an iOS’s web view (that can render Excel files). Right now I’m working on deadlines, but I should be able to work on it in a few weeks (if no one else offers to do it before, of course).

Contributor

lrossi commented Aug 21, 2015

Hi John,

perfect, thanks!

As regards compiling on iOS, I only encountered an issue with missing type z_crc_t (similar to #5) and I circumvented it by adding the NOCRYPT=1 and NOUNCRYPT=1 flags as suggested here: http://kvurd.com/blog/building-libxlsxwriter-for-ios/

Beside that, I was able to compile the included minzip dependency without needing to downgrade zlib. I’ve tested the pod on iOS 8 and I’m using it to generate some Excel files in an app I’m working on, and it works great. Oh by the way, thanks for such an amazing library :)

If you have access to an OS X installation with Xcode installed, you can install CocoaPods and try the pod compilation by running:

pod lib lint --verbose libxlsxwriter.podspec

Also, if you are interested in it, I was thinking about creating a sample iOS project to go along with the pod. Something like a simple app where you can select among the examples you already provided and then see the output through an iOS’s web view (that can render Excel files). Right now I’m working on deadlines, but I should be able to work on it in a few weeks (if no one else offers to do it before, of course).

@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Aug 21, 2015

Owner

Also, if you are interested in it, I was thinking about creating a sample iOS project to go along with the pod. Something like a simple app where you can select among the examples you already provided and then see the output through an iOS’s web view (that can render Excel files).

That sounds great and I think it would be really useful. It would probably be better as a standalone repo on GitHub that people could use to get started.

but I should be able to work on it in a few weeks (if no one else offers to do it before, of course).

Take your time. Whenever you get a chance.:-)

Owner

jmcnamara commented Aug 21, 2015

Also, if you are interested in it, I was thinking about creating a sample iOS project to go along with the pod. Something like a simple app where you can select among the examples you already provided and then see the output through an iOS’s web view (that can render Excel files).

That sounds great and I think it would be really useful. It would probably be better as a standalone repo on GitHub that people could use to get started.

but I should be able to work on it in a few weeks (if no one else offers to do it before, of course).

Take your time. Whenever you get a chance.:-)

@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Sep 27, 2015

Owner

Just to let you know that I pushed the spec to the CocoaPods trunk.

There are some pod lint warnings that need to be fixed. I'll do that and add the the pod install method to the next release.

Owner

jmcnamara commented Sep 27, 2015

Just to let you know that I pushed the spec to the CocoaPods trunk.

There are some pod lint warnings that need to be fixed. I'll do that and add the the pod install method to the next release.

@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Sep 27, 2015

Owner

I've fixed the lint warnings and (hopefully) set it up to work with iOS and OS X. If you get a chance to test it let me know.

Owner

jmcnamara commented Sep 27, 2015

I've fixed the lint warnings and (hopefully) set it up to work with iOS and OS X. If you get a chance to test it let me know.

@lrossi

This comment has been minimized.

Show comment
Hide comment
@lrossi

lrossi Nov 13, 2015

Contributor

I finally had a chance to put together iOS and Mac example projects in Objective-C and Swift:

https://github.com/lrossi/libxlsxwriterCocoaExamples

Please take a look at them when you have time and of course feel free to share any suggestions. Thanks!

Contributor

lrossi commented Nov 13, 2015

I finally had a chance to put together iOS and Mac example projects in Objective-C and Swift:

https://github.com/lrossi/libxlsxwriterCocoaExamples

Please take a look at them when you have time and of course feel free to share any suggestions. Thanks!

@jmcnamara

This comment has been minimized.

Show comment
Hide comment
@jmcnamara

jmcnamara Nov 13, 2015

Owner

Wow, that's great. I love the gif. :-)

I'll try it out on the weekend.

John

Owner

jmcnamara commented Nov 13, 2015

Wow, that's great. I love the gif. :-)

I'll try it out on the weekend.

John

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