XcodeGen超入門

011714704c4a925e542d426d4cdaa4e3?s=47 giginet
January 21, 2020

 XcodeGen超入門

try! Swift Tokyo 2020 Meetup!!
https://tryswifttokyo.connpass.com/event/160481/

011714704c4a925e542d426d4cdaa4e3?s=128

giginet

January 21, 2020
Tweet

Transcript

  1. 5.

    $ xcodegen Loaded project: Name: MyApp Targets: MyApp: iOS application

    Schemes: MyApp ⚙ Generating project... ⚙ Writing project... Created project at MyApp.xcodeproj
  2. 6.
  3. 12.

    XcodeGenࣄྫ • 2018/11 XcodeGenΛಋೖ • 2019/4 XcodeGen঺հهࣄΛॻ͍ͨ • 2019/9 XcodeGenίϛολʔʹ

    XcodeGenʹΑΔ৽࣌୅ͷiOSϓϩδΣΫτ؅ཧ - ΫοΫύου։ ൃऀϒϩά https://techlife.cookpad.com/entry/2019/04/26/110000
  4. 15.

    Project Spec • ϓϩδΣΫτͷఆٛϑΝΠϧʢproject.ymlʣ • هड़ํ๏͸υΩϡϝϯτ XcodeGen/ProjectSpec.md at master ·

    yonaskolb/XcodeGen https://github.com/yonaskolb/XcodeGen/blob/master/Docs/ ProjectSpec.md
  5. 16.
  6. 17.

    options: deploymentTarget: iOS: "12.0" name: MyApp targets: MyFramework: sources: MyFramework

    platform: iOS type: framework sources: MyFramework MyApp: type: application platform: iOS sources: MyApp settings: base: INFOPLIST_FILE: MyApp/Info.plist PRODUCT_BUNDLE_IDENTIFIER: com.myapp Debug: GCC_PREPROCESSOR_DEFINITIONS: DEBUG=1 dependencies: - target: MyFramework
  7. 20.

    Target Template • ςϯϓϨʔτ͔ΒλʔήοτΛෳ੡Ͱ͖Δ • ϚϧνϞδϡʔϧԽͳͲʹศརɹ targetTemplates: Framework: platform: iOS

    type: framework sources: - ${frameworkName} targets: MyFramework: templates: - Framework templateAttributes: frameworkName: AwesomeFramework
  8. 22.
  9. 28.

    CocoaPodsΛ࢖͍͍ͨͰ͢ • xcodegenͰੜ੒͔ͯ͠Β pod install ͠·͠ΐ͏ • CocoaPods͸ *.xcodeproj ΛݩʹઃఆΛ஫ೖͯ͠

    *.xcworkspaceΛੜ੒͢ΔͨΊɺຖճ࣮ߦ͕ඞཁ • Shell ScriptͳͲͰbootstrapͷखஈΛ༻ҙ͓ͯ͘͠ $ xcodegen $ pod install
  10. 34.