GithubHelp home page GithubHelp logo

Comments (8)

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 8, 2024

Hi @Kumail-51214 , thank you for contacting us!

Have you tried to import any other dependencies of our library with @_implementationOnly?
To understand if the issue is specific to PLCR or not.
I'm not familiar with this feature (@_implementationOnly) and couldn't find a public doc from apple on supported scenarios. So, I would suggest to open a ticket on the apple developer portal as well.

Also, might be worth checking architectures:

lipo -info ./build/MyFramework.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/MyFramework.framework/MyFramework

Ensure you see x86_64 and/or arm64 for the simulator.

It would be helpful if you could create a minimal project that replicates your scenario. It would also be beneficial to share this with Apple.

from plcrashreporter.

Kumail-51214 avatar Kumail-51214 commented on June 8, 2024

Hey @DmitriyKirakosyan , thanks for replying back.
I have just used @_implementationOnly CrashReporter and initialized SDK using the code provided in documentation.

About@_implementationOnly, I only used it because I was unable to use any third party library in my XCFramework, and as a workaround, it was suggested to use this property wrapper.

For you to better understand my issue, I have created a git project, in which I have included SDK Project, SDK XCFramework & Project in which I am integrating SDK. Below is the link:

https://github.com/Kumail-51214/SDKTesting

Hoping to hear from you soon.! Thanks

from plcrashreporter.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 8, 2024

Thank you so much for the example.

About@_implementationOnly, I only used it because I was unable to use any third party library in my XCFramework, and as a workaround, it was suggested to use this property wrapper.

Could you provide more details on this? Why wouldn't it possible using your library without @_implementationOnly?

from plcrashreporter.

Kumail-51214 avatar Kumail-51214 commented on June 8, 2024

20230904-102224

20230904-102454

@DmitriyKirakosyan , if i don't use @_implementationOnly while using CrashReporter in my SDK, then when i make SDK using the commands provided above, and then use that SDK in any project i get following error as in the image above. Error occur both on Simulator as well as Physical device.

However, SDK itself builds fine without any errors. Only when that SDK is used in form of .xcframework in any project, the above issue arise.

from plcrashreporter.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 8, 2024

@Kumail-51214, it appears that there may be an issue with the integration of your SDK and PLCrashReporter. In most cases, it should work without the need for @_implementationOnly, unless there are specific build configuration or integration issues.

As a reference, you can examine the AppCenter SDK as an example. It utilizes PLCrashReporter without @_implementationOnly and integrates seamlessly into iOS applications without encountering any problems.

from plcrashreporter.

Kumail-51214 avatar Kumail-51214 commented on June 8, 2024

@DmitriyKirakosyan , did you tried and run the project/SDK that I've provided?
Also, currently my SDK is dynamic Linked (Default). Can that be the issue? Should I change it to Statically Linked Library?

from plcrashreporter.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 8, 2024

@Kumail-51214 , yes, I tried, but it builds and runs on simulator successfully for me. I'm running the IntegratingTestSDK.

Also, currently my SDK is dynamic Linked (Default). Can that be the issue? Should I change it to Statically Linked Library?

Using static or dynamic lib is your choice and there are cons and pros.
However, I'm still not sure why it doesn't work for you without using @_implementationOnly. Normally, it should.

from plcrashreporter.

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.