Coder Social home page Coder Social logo

nitinseshadri / iappconverter Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 3.0 2.8 MB

Modify iOS apps to run on different Apple platforms - run the iPhone Calculator app on iPad

Swift 100.00%
macos ipados tvos watchos mac-catalyst mac-idiom ios-simulator tvos-simulator watchos-simulator uidevicefamily

iappconverter's People

Contributors

nitinseshadri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iappconverter's Issues

Support single-target watchOS App format

Xcode 14 includes the ability to create single-target watchOS apps without the need for separate app and extension targets, powered by the new WKApplication class.

Some notes about the WKApplication class:

  • Looking at the documentation, WKApplication appears to be a direct subclass of UIApplication, with very similar method names. It would not be surprising if WKApplicationMain() was simply calling UIApplicationMain() internally (notably, the principalClassName parameter is missing from WKApplicationMain).
  • While the WKApplication class was only added to the public headers in watchOS 9.0 (diff), single-target watchOS apps are supported back to watchOS 7.0, suggesting that this was likely previously private API that Apple has opened to developers.

The following changes need to be made when the deployment target is greater than watchOS 9.0. We can allow the user to manually enable this behavior for deployment targets 7.0 <= x < 9.0.

  • AppConverter.swift processInfoPlist() will need to set WKApplication = true and WKWatchOnly = true instead of WKWatchKitApp = true
  • AppConverter.swift repackageBundleForWatchOS() can probably become a no-op
  • The warning message emitted as part of the conversion process should be changed.

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.