Giter VIP home page Giter VIP logo

Comments (28)

chamitha avatar chamitha commented on May 25, 2024 1

Xcode 11.3
Deployment Target - iOS 11.1
Configuration - Release

from openssl.

aiqinxuancai avatar aiqinxuancai commented on May 25, 2024 1

Hi @krzyzanowskim, I have the exact same problem as @chamitha, any suggestions?

Using Xcode 11.1 (stuck with it because of one library), target 12.4.

Thank you

I had the same problem
According to the observation, 1.0.2.20 can be build on xcode11.5, and error build on xcode11.3.1

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

it never has. Nothing changed in that matter since 1.0.2.17 afaik

from openssl.

xsown avatar xsown commented on May 25, 2024

it never has. Nothing changed in that matter since 1.0.2.17 afaik

It seems that 1.0.2.18 uses OpenSSL.framework while 1.0.2.17 uses static libs (libcrypto.a & libssl.a)

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

Fixed on master. Can you plase confirm on your side that the current master 015d226 is ok now?

from openssl.

xsown avatar xsown commented on May 25, 2024

20190627-212103@2x

015d226 has both framework and libs. The compiler still complains no bitcode on the OpenSSL.framework

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

has both framework and libs.

this is expected. You can use either.

from openssl.

xsown avatar xsown commented on May 25, 2024

has both framework and libs.

this is expected. You can use either.

I am using this from CocoaPods ... which auto configures and links both the framework file and .a files into the xcode project, and will always cause a linking error.

If there will be difficuties on bitcode into the framework file, maybe we can just roll back to only use .a files, like what 1.2.0.17 does?

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

which auto configures and links both the framework

ok. this is unexpected then. there is OpenSSL-Universal that uses static libraries and OpenSSL-Universal/Framework that uses framework. I didn't anticipate it will link both

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

I updated podspec configuration. Static is default now. You need clear pod cache to fetch update version

from openssl.

xsown avatar xsown commented on May 25, 2024

It works now 👍

from openssl.

philips77 avatar philips77 commented on May 25, 2024

I have the same issue on 1.0.2.19 while 1.0.2.18 and ..17 work fine: NordicSemiconductor/IOS-nRF-Mesh-Library#191
However, with those 2 versions I'm unable to push my library to CocoaPod (works with 1.0.2.19).

Here's the log from pod lib lint in my library:

> nRFMeshProvision (2.0.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:314:5: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:330:5: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:487:22: error: a parameter list without types is only allowed in a function definition
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:535:1: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:535:39: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:536:1: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:536:33: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:537:28: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:538:28: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:539:28: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:540:28: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:541:1: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:557:37: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:596:24: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:914:1: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:914:27: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:914:47: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:915:27: error: unknown type name 'BN_ULONG'
    - ERROR | [iOS] xcodebuild:  Headers/Public/OpenSSL-Universal/openssl/bn.h:916:1: error: unknown type name 'BN_ULONG'
    - NOTE  | [iOS] xcodebuild:  fatal error: too many errors emitted, stopping now [-ferror-limit=]

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

@philips77 Did you clear pod cache to fetch update version?

from openssl.

philips77 avatar philips77 commented on May 25, 2024

I think so.
I assume I should use 1.0.2.19, as this is the latest one. As it works for my library and the sample app, should I do pod cache clean OpenSSL-Universal in the test project (which depends on my library), or in my library, as it has been build with some invalid version?
Could you help me with this?

I have 2 project:

  1. nRFMeshProvision library (development) with Sample app, released on CocaPods as version 2 with dependency to OpenSSL 1.0.2.19.
  2. Test project, that adds dependency to nRFMeshProvision (latest version).

The first one is working fine, at least for me. The second one fails with the error form the 1st post in this issue.

Here's my pod file for the test project:

target 'Test' do
    platform :ios, 13.0
    pod 'nRFMeshProvision'
end

I also tried this:

target 'Test' do
    platform :ios, 13.0
    pod 'nRFMeshProvision', :git => 'https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library.git', :branch => 'openssl/1.0.2.19'
end

from openssl.

philips77 avatar philips77 commented on May 25, 2024

Btw, I just notice a difference in the error message:

ld: '/Users/alno/Desktop/Kaczka/Test/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cmac.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024
rm -rf ~/Library/Caches/CocoaPods
cd Project
rm Pods

yes, you should use 1.0.2.19, unless something specifies different version.

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

@philips77 I'm not sure what's going on exactly with "Kaczka" :)
Here's what you can do:

  1. Disable bitcode for your app like the message says
  2. There's OpenSSL-Universal/Framework that you can try too

from openssl.

philips77 avatar philips77 commented on May 25, 2024

Oh, after disabling bitcode in the Kaczka/Test app it compiled successfully. Why does it work with bitcode enabled with older versions?
For the option 2, I would have to change the dependency in my library in podspec, correct? Not in the test app.

from openssl.

philips77 avatar philips77 commented on May 25, 2024

Kaczka is a perfect name for anything that can be removed without hesitation. There is no way anything else creates a folder or a file with kaczka in the name, so even 5 years later I know it was me who did this and it's just taking space. Don't want to go to politics ;) but anything with Kaczka can be deleted safely.

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

Don't want to go to politics ;) but anything with Kaczka can be deleted safely.

did I trigger something by accident? :) I couldn't care less about your project name haha

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

Oh, after disabling bitcode in the Kaczka/Test app it compiled successfully. Why does it work with bitcode enabled with older versions?

I'm not sure. I'd say it never worked, as bitcode never really worked.

from openssl.

philips77 avatar philips77 commented on May 25, 2024

Ok, Thanks for super quick help!

from openssl.

chamitha avatar chamitha commented on May 25, 2024

The same issue exists for 1.0.2.19. Is there a solution besides disabling bitcode?

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

Try 1.0.2.20 and let me know if it worked for you

from openssl.

chamitha avatar chamitha commented on May 25, 2024

I get a linker error in Xcode when using 1.0.2.20.

Undefined symbols for architecture arm64:
  "___darwin_check_fd_set_overflow", referenced from:
      _RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture arm64

1.0.2.18 works fine.

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

What Xcode version do you use, and what deployment target?

from openssl.

Marcopohlo avatar Marcopohlo commented on May 25, 2024

Hi @krzyzanowskim, I have the exact same problem as @chamitha, any suggestions?

Using Xcode 11.1 (stuck with it because of one library), target 12.4.

Thank you

from openssl.

chamitha avatar chamitha commented on May 25, 2024

I can confirm 1.0.2.19 works as expected with Xcode 11.5 👍

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.