Git Product home page Git Product logo

realsimulator's Introduction

Simulate all devices into one real iPhone

  1. iOS Developer?
  2. Devices Compatible?
  3. Devices Without All Resolutions?

RealSimulator can be help you.

Install

Carthage only !!!

github "XWJACK/RealSimulator"

# New Run Script with debug only 
if [ "$CONFIGURATION" == "Debug" ]; then
/usr/local/bin/carthage copy-frameworks
fi
# Add to Input Files
$(SRCROOT)/Carthage/Build/iOS/RealSimulator.framework
# Add to Output Files
$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/RealSimulator.framework

Usage

#if DEBUG
import RealSimulator
typealias RSWindow = RealSimulator.RSWindow
#endif

class AppDelegate: UIResponder, UIApplicationDelegate {
    
#if DEBUG
	var window: RSWindow?
#else
	var window: UIWindow?
#endif

	func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
	   // Override point for customization after application launch.
	   
	#if DEBUG
	   window = RSWindow(frame: UIScreen.main.bounds)
	#else
	   window = UIWindow(frame: UIScreen.main.bounds)
	#endif
	   
	   window?.rootViewController = UITabBarViewController()
	   window?.makeKeyAndVisible()
	   
	   return true
	}
}

iPhone 8P => iPhone X

iPhone 8P => iPhone SE

Donate

If you think it useful, you can send me some BTC? ETH? or any crypto coin using GitThanks

Thanks!

realsimulator's People

Contributors

xwjack avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.