meganz / iOS

MEGA for iOS
https://apps.apple.com/app/mega/id706857885?mt=8
Other
342 stars 95 forks source link

Building for iOS Simulator, but the linked library 'libcryptopp.a' was built for iOS. #43

Closed Xcdmau5 closed 4 years ago

Xcdmau5 commented 4 years ago

General Information

I'm trying to build app in iOS Simulator after updating Xcode to Version 11.4 (11E146). Get "Building for iOS Simulator, but the linked library 'libcryptopp.a' was built for iOS." error when building for Simulator. For iOS Devices everything is ok. I downloaded prebuild 3dparty libs from your source.

jnavarrom commented 4 years ago

It fails indeed. Really weird that it doesn't work on Xcode 11.4, the library was built for simulator and on previous Xcode versions it worked well.

lipo -info libcryptopp.a Architectures in the fat file: libcryptopp.a are: armv7 armv7s x86_64 arm64

Screenshot 2020-03-26 at 16 10 14
jnavarrom commented 4 years ago

You need rebuild cryptopp, remove the lib (lib/libcryptopp.a) and headers (include/cryptopp) and run the cryptopp script (build-cryptopp.sh)

Screenshot 2020-03-26 at 16 26 21
Xcdmau5 commented 4 years ago

I rebuild cryptopp for devices and simulator and now have Undefined symbol errors. Maybe it's better if you will upload new building lib for downloading from storage?

Screenshot 2020-03-26 at 18 27 04
jnavarrom commented 4 years ago

What is Clouds(Combine)?

jnavarrom commented 4 years ago

cryptopp Xcode_11.4 https://mega.nz/#!oQMkHA5A!vVowBV_nh7hWEDptDOkYk_G2nME6NtmlZju5khCvhXc

Xcdmau5 commented 4 years ago

It's my project where I have integrated mega cloud storage. Thank you, everything works fine with your builded lib.