Giter Site home page Giter Site logo

Comments (11)

Wenzhi avatar Wenzhi commented on July 17, 2024

Hi @Clifton-Roberts, may I ask which cocoapods version you are using for the pod install and pod update?

from appboy-ios-sdk.

cliftonr avatar cliftonr commented on July 17, 2024

Hey, @Wenzhi, I'm using version 0.38.0.

from appboy-ios-sdk.

Wenzhi avatar Wenzhi commented on July 17, 2024

@Clifton-Roberts It seems that Cocoapods 0.38.0 change the way of building a dynamic framework from a static library. I'm still looking at it and trying to find a way to workaround.
Are you using use_frameworks! in your Podfile? If you don't, directly use the static library should work.

from appboy-ios-sdk.

cliftonr avatar cliftonr commented on July 17, 2024

@Wenzhi We do have use_frameworks! in our Podfile. Unfortunately, I don't see a way to disable this on an individual basis.

from appboy-ios-sdk.

cliftonr avatar cliftonr commented on July 17, 2024

Might this fix the issue? CocoaPods/CocoaPods#3859

from appboy-ios-sdk.

Wenzhi avatar Wenzhi commented on July 17, 2024

Thank you for helping the investigation! I saw the issue too, but I'm not really sure if it's going to fix the problem.

The issue Undefined symbols usually is a linker issue or a library/framework search path issue. From the xcconfig files Cocoapods generated, they are all pointing to the Appboy_iOS_SDK.framework in the build folder. However, in Cocoapods 0.37.2, the file Appboy_iOS_SDK.framework/Appboy_iOS_SDK was 1.3MB, while in 0.38.0, the file is only 12KB, which makes me think the library might not be bundled in the framework properly.

I'm going to file an issue on the Cocoapods repo. I think for now, you can either downgrade your Cocoapods back to 0.37.2 to make it work, or use the manual integration. Usually the Cocoapods community respond fast; we'll also look into Cocoapods source to see if we can track down the issue.

from appboy-ios-sdk.

perotinus avatar perotinus commented on July 17, 2024

Yes, the referenced PR almost certainly won't fix this issue. It only affects header search paths, and since everything is compiling fine, that's not the issue here.

from appboy-ios-sdk.

perotinus avatar perotinus commented on July 17, 2024

Potentially relevant: CocoaPods/CocoaPods#3773

from appboy-ios-sdk.

Wenzhi avatar Wenzhi commented on July 17, 2024

Thank you @perotinus ! I filed a new issue CocoaPods/CocoaPods#3870 mentioning it.

from appboy-ios-sdk.

jkopelioff avatar jkopelioff commented on July 17, 2024

Here is the fix...

We're able to fix this locally with this in our Podfile:

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == "Appboy-iOS-SDK"
config.build_settings["OTHER_LDFLAGS"] = '$(inherited) "-ObjC"'
end
end
end
end

from appboy-ios-sdk.

Wenzhi avatar Wenzhi commented on July 17, 2024

Thank you so much @jkopelioff ! I'll also test it and then update our documentation and our sample code.

from appboy-ios-sdk.

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.