0

i have setted my project's build settings inserting "Standard architectures (armv7, arm64)" and "Valid architecture (armv7, armv7s and arm64)" for . With these options i can build the project for iPhone 3Gs, iPhone 5 and iPhone 5s (hardware with 32 and 64 bit architecture) but i have problems when i try to build the project for the simulator. Why? I have errors like this

    "_BIO_f_base64", referenced from:
user3632160
  • 11
  • 1
  • 3

3 Answers3

0

That's because the simulator is running on an i386 architecture and no arm. Add something like i386 to the supported architecture. (see one of the many answers here on SO for details and screenshots)

Community
  • 1
  • 1
dogsgod
  • 6,177
  • 5
  • 24
  • 53
0

BIO_f_base64 is part of OpenSSL (https://www.openssl.org/docs/crypto/BIO_f_base64.html). That is not available on iOS. Are you embedding a local copy of OpenSSL into your app? It looks like you might not be building the library correctly. Make sure you build it for the iOS Simulator and x86_64 plus i386.

Jeremy Huddleston Sequoia
  • 22,336
  • 5
  • 72
  • 83
0

You can execute the command that "lipo -info openssl.a" in terminal. Watch what is it'architecture? should be arm.

zhangyu528
  • 21
  • 2