-1

I created Fresh new Xcode iOS project and followed below steps.

  1. Drag & Drop SSZipArchive folder in Xcode project.
  2. Created Briging Header and imported Header file I.e. #Import "SSZipArchive.h"
  3. Added libz.tbd and security framework to a target

Then after it gave lot's of semantic issues. Can somebody please help me on this. It Would be really helpful if there is a video of importing this files in XCode iOS project. Please help me.

For reference please see screenshot below enter image description here

Can somebody please help me on importing manually.

enter image description here

Yash
  • 11,486
  • 4
  • 19
  • 35
Eshwar
  • 3
  • 5
  • @Cœur can you please help me to import manually in Xcode 10.2 swift 4. – Eshwar Aug 13 '19 at 13:08
  • follow the steps under manual. https://github.com/ZipArchive/ZipArchive – Ben Rockey Aug 13 '19 at 13:47
  • @BenRockey Yes i followed those steps last step(4) i was not able to do it how can i do it ion xcode 10.2 and swift 4. – Eshwar Aug 13 '19 at 13:49
  • search GCC_PREPROCESSOR_DEFINITIONS in buildsettings and add : HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB MZ_ZIP_NO_SIGNING $(inherited) in debug section – Ben Rockey Aug 13 '19 at 14:00
  • @Eshwar for information, when you write `@Cœur` in a comment, I'll only be notified if I've previously added a comment on the post, or edited the post. I just saw your comment by luck. – Cœur Aug 15 '19 at 05:50

1 Answers1

1

https://github.com/ZipArchive/ZipArchive from this

  1. Add the SSZipArchive folder that contain minizip folder to your project.
  2. Add the libz and libiconv libraries to your target.
  3. Add the Security framework to your target. enter image description here
  4. Add the following GCC_PREPROCESSOR_DEFINITIONS: HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB MZ_ZIP_NO_SIGNING $(inherited). enter image description here
  5. Remove info.plist under target-> build phase-> copy bundle resources.
Ben Rockey
  • 920
  • 6
  • 23
  • Thank you, I'll link to your tutorial next time. ;) – Cœur Aug 15 '19 at 05:48
  • Note that from your screenshot, you have `$(inherited)` twice, and with a typo the second time: you actually only need it once. – Cœur Aug 15 '19 at 05:52
  • Hi @Cœur .Still i'm facing issues, Can you kindly create one video importing into xcode. This will be a great help to me. – Eshwar Aug 29 '19 at 11:43
  • @Ben Rockey I'm facing issues while creating build. Can you pls create one video importing into XCode manually. Thanks. – Eshwar Aug 30 '19 at 05:58
  • @Eshwar please list the issues you facing while creating the build. – Ben Rockey Aug 30 '19 at 06:37
  • If i install it through XCODE run to simulator/device it's working fine unzipping files. I'm using Admin jenkins Xmake software to create ios build Where as after creating ipa file that unzipping functionality is not working. – Eshwar Aug 30 '19 at 09:04
  • I think we copied only in DEBUG GCC_PREPROCESSOR_DEFINITIONS so that's why in release(I mean ipa) not able to unzip. Am i correct?? Ben Rockey and Coeur. – Eshwar Sep 04 '19 at 05:33
  • This line i'm adding in release hope it works. RELEASE=1 HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB $(inherited) – Eshwar Sep 04 '19 at 05:37