jensmeder / Phoenx

A ruby gem to automate Xcode project generation.
https://rubygems.org/gems/phoenx
MIT License
18 stars 3 forks source link

Watch App / Extensions Support #42

Closed simonseyer closed 6 years ago

simonseyer commented 6 years ago

⚠️ External Requirements ⚠️

Depends on three PRs on the CocoaPods/Xcodeproj project. All required changes are available via the development branch of the cobi-bike/Xcodeproj fork: gem "xcodeproj", :git => "git@github.com:cobi-bike/Xcodeproj.git", :branch => "development"

Changes

Support for Embedded watchOS Apps

Phoenx::Project.new do |spec|
  spec.target "App", :application, :ios, '10.0' do |target|
    target.watch_target "WatchApp", :watch2_app, :watchos, '4.1' do |watch_target|
      # Same configuration properties available as for the app target
      watch_target.extension_target "COBIWatchExtension" do |extension|
        # Same configuration properties available as for the watch target
      end
    end
  end
end

Support for (Today) Extensions

Solves https://github.com/jensmeder/Phoenx/issues/26 @karstenlitsche

Phoenx::Project.new do |spec|
  spec.target "App", :application, :ios, '10.0' do |target|
    target.extension_target "COBITodayExtension" do |extension|
      # Same configuration properties available as for the app target
    end
  end
end

Other Changes