Coder Social home page Coder Social logo

Comments (18)

jefmoraes avatar jefmoraes commented on July 23, 2024 1

here the problem was related to the use of use_frameworks! :linkage => :static, just add the code bellow it to the podfile and run pod install. This way, in build phases in the callstack-repack pod you will notice that the Copy generated compatibility header file will be generated, it is responsible for guiding the import paths.

pre_install do |installer|
   installer.pod_targets.each do |pod|
     if pod.name.eql?('callstack-repack')
       def pod.build_type
         Pod::BuildType.static_library
       end
     end
   end
 end 

After

image
image

Before

image
image

from repack.

mlakmal avatar mlakmal commented on July 23, 2024 1

i do see use_frameworks! in our podfile
let me give it a shot at above fix and let yall know...

from repack.

lakmal-gentem avatar lakmal-gentem commented on July 23, 2024 1

Yes I am not sure what combination actually worked. I did all below and it's solved now. Tnx

  • Add callstack as static in profile
  • Add manual link in profile for callstack. Yarn didn't auto link...
  • Re-setup ruby env

from repack.

jbroma avatar jbroma commented on July 23, 2024 1

@mlakmal @jefmoraes Potential fix for this issue has been merged, it will be included in 4.0.0-rc.2 which should be available today 🎉

If there is an option for you to test whether this fixes the problem without adjusting Podfile in your projects, please do and let me know if that helped 🙏

from repack.

HebertGB avatar HebertGB commented on July 23, 2024 1

@mlakmal @jefmoraes Potential fix for this issue has been merged, it will be included in 4.0.0-rc.2 which should be available today 🎉

If there is an option for you to test whether this fixes the problem without adjusting Podfile in your projects, please do and let me know if that helped 🙏

I confirm that the repack upgrade from 3.7.0 to 4.0.0-rc-2 resolved this issue without need to add "pre_install ..." to Podfile.

from repack.

ichina avatar ichina commented on July 23, 2024 1

@mlakmal @jefmoraes Potential fix for this issue has been merged, it will be included in 4.0.0-rc.2 which should be available today 🎉

If there is an option for you to test whether this fixes the problem without adjusting Podfile in your projects, please do and let me know if that helped 🙏

i confirm that the issue is fixed in 4.0.0-rc-2

from repack.

mlakmal avatar mlakmal commented on July 23, 2024 1

@mlakmal @jefmoraes Potential fix for this issue has been merged, it will be included in 4.0.0-rc.2 which should be available today 🎉
If there is an option for you to test whether this fixes the problem without adjusting Podfile in your projects, please do and let me know if that helped 🙏

thanks for the fix. will try it later next week and get back to you!

yes this is working on ours as well!

from repack.

sternlucas avatar sternlucas commented on July 23, 2024

Same problem here

from repack.

jbroma avatar jbroma commented on July 23, 2024

@jefmoraes @sternlucas can you provide me with your cocoapods version being used in the projects?

from repack.

jbroma avatar jbroma commented on July 23, 2024

@jefmoraes @sternlucas I'm not able to reproduce this issue on a fresh react-native project created using CLI, can you provide even more details about your environment? Here is what i tried it on:

  1. System: Sonoma 14.1
  2. Xcode: 15.2
  3. Ruby: 2.7.6
  4. Cocoapods: 14.3
  5. Node: 20.11.1

from repack.

mlakmal avatar mlakmal commented on July 23, 2024

@jbroma seeing same issue when i tried to integrate re.pack to existing application

Sonomae 14.3.1
XCode 15.2
Ruby 2.7.6
cocoapods 1.11.2
node 16.14.2

react-native 0.68.6
@callstack/repack ^3.7.0

i tried setting up superapp example and it worked fine with above core deps

from repack.

jbroma avatar jbroma commented on July 23, 2024

@mlakmal did you run pod install after adding repack?

from repack.

mlakmal avatar mlakmal commented on July 23, 2024

@mlakmal did you run pod install after adding repack?

yes i did. it installed the Pods. below is the screenshot in xcode with pod files.

screenshot

from repack.

jbroma avatar jbroma commented on July 23, 2024

Looks like it's related to #390

from repack.

mlakmal avatar mlakmal commented on July 23, 2024

that workaround did not resolve the issue for me.

fyi: point to note is that i had to manually link the callstack-repack in Podfile. wonder if thats causing the issue...

from repack.

github-actions avatar github-actions commented on July 23, 2024

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

from repack.

jbroma avatar jbroma commented on July 23, 2024

@mlakmal did you manage to resolve this?

from repack.

mlakmal avatar mlakmal commented on July 23, 2024

@mlakmal @jefmoraes Potential fix for this issue has been merged, it will be included in 4.0.0-rc.2 which should be available today 🎉

If there is an option for you to test whether this fixes the problem without adjusting Podfile in your projects, please do and let me know if that helped 🙏

thanks for the fix. will try it later next week and get back to you!

from repack.

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.