Giter VIP home page Giter VIP logo

Comments (5)

phimage avatar phimage commented on July 28, 2024

The framework cannot compile in iOS app extension due to UIApplication.sharedcode
How do you achieve to make it work with device unlocked?
(maybe you compile the framework without extension context and use it for both, app and extension)

the link you post it's not pure iOS but Xamarin

I think there is also an issue with application name, taken from main bundle

To fix the compile issue a compilation flag could be added to replace the current code by one using NSExtensionContext
like I do here
https://github.com/OAuthSwift/OAuthSwift/wiki/Work-with-application-extension
for cocoapod I will update the demo podfile as example
https://github.com/phimage/CallbackURLKit/blob/master/SampleApp/Podfile

from callbackurlkit.

francosolerio avatar francosolerio commented on July 28, 2024

I don't use CocoaPods. I added CallbackURLKit to my project as a subproject and added CallbackURLKit.framework to both my app and my today extension's target in the section Linked Frameworks and Libraries. This way it compiles for both with no issues.

from callbackurlkit.

phimage avatar phimage commented on July 28, 2024

I suppose that app extension has underneath also the UIApplication.shared attribute
(apple could call this using hidden and private API, event if it is not on purpose)

from callbackurlkit.

phimage avatar phimage commented on July 28, 2024

I add a compilation flag APP_EXTENSIONS
an instance of NSExecutionContext in Manager to open URLs

No tested yet

For carthage maybe the only possibility is to create a new shared scheme with a new target with specific name

from callbackurlkit.

phimage avatar phimage commented on July 28, 2024

Closed for no activity

from callbackurlkit.

Related Issues (15)

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.