Giter Club home page Giter Club logo

buildz's Introduction

Buildz

A repo to practice building apps manually...

Using xcodebuild

Simple

Building

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" build

Testing

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" -destination "name=iPhone 11 Pro" test

Cleaning

xcodebuild clean

Or add clean to xcodebuild build command:

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" clean build

Analyze

xcodebuild analyze

Archive

First, build using generic platform:

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" -destination generic/platform=iOS build

Second, build the xcarchive:

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" \
  -archivePath ./Simple.xcarchive \
  archive

Third, generate the proper exportOptions.plist:

Note: This example uses manual signing with a development build:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>method</key>
	<string>development</string>
	<key>provisioningProfiles</key>
	<dict>
		<key>ENTER YOUR BUNDLE ID HERE</key>
		<string>ENTER YOUR PROVISIONING PROFILE HERE</string>
	</dict>
	<key>signingStyle</key>
	<string>manual</string>
</dict>
</plist>

Lastly, export the ipa:

xcodebuild -exportArchive \
  -archivePath ./Simple.xcarchive \
  -exportOptionsPlist ./exportOptions.plist \
  -exportPath ./Simple.ipa

Advanced

Testing

Testing with specific device and iOS version with multiple destinations:

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" \
  -destination "name=iPad Pro (12.9-inch) (3rd generation),OS=13.0" \
  -destination "name=iPhone 11,OS=13.3" \
  test

Testing without building:

xcodebuild -scheme "Simple" -project "Simple.xcodeproj" -destination "name=iPhone 11 Pro" test-without-building

Dynamic Framework

Additional commands

List simulators

instruments -s devices

Notes:

Since this is an iOS Application, in order to run build or archive commands, it is required to create a real "App ID" and development provisioning profile.

These commands can all currently be used using the "Simple" Xcode project.

References:

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.