Upgrade to Pro — share decks privately, control downloads, hide ads and more …

XcodeのDevelopment Assets探訪

Sho Ikeda
October 31, 2022

XcodeのDevelopment Assets探訪

「potatotips #79 iOS/Android開発Tips共有会」での発表資料です #potatotips

https://potatotips.connpass.com/event/261215/

Sho Ikeda

October 31, 2022
Tweet

More Decks by Sho Ikeda

Other Decks in Programming

Transcript

  1. @ikesyo / Sho Ikeda • ͍͚͠ΐʔʗ஑ా ᠳ • גࣜձࣾ͸ͯͳ γχΞΤϯδχΞʢژ౎ʣ

    • ϚϯΨΞϓϦνʔϜ • iOS / Android / React Native • Swiftίϛολʔ • swift-corelibs-foundation • Quick/Nimbleͷϝϯςφʔ • ࠷ۙ͸ٳࢭؾຯ…… • https://twitter.com/ikesyo • https://github.com/ikesyo
  2. ීஈ͸ϚϯΨΞϓϦΛ࡞͍ͬͯ·͢ • νʔϜϝϯόʔͷΞ΢τϓοτ • ϚϯΨϏϡʔϫGigaViewer for AppsͰJetpack ComposeΛશ໘࠾༻ͯ͠Έͨ - Hatena

    Developer Blog • GigaViewer for AppsͰ࢖͍ͬͯΔศརSwiftUIίϯϙʔωϯτ̑࿈ൃʂ - Hatena Developer Blog
  3. Development Assets • Xcode 11ͰSwiftUIͱڞʹొ৔ͨ͠ػೳ • SwiftUIͷϓϨϏϡʔʹ࢖͏ը૾ϦιʔεͳͲͷΞηοτͷύεΛࢦఆ͢Δ • ΞηοτΧλϩά΍JSONσʔλͳͲͷϦιʔε͚ͩͰͳ͘ɺιʔείʔ υʹ΋࢖͑Δ

    • ͜͜Ͱࢦఆͨ͠ίϯςϯπ͸։ൃ൛ͷΞϓϦʹؚ͔͠·Εͳ͍ • ϓϨϏϡʔ༻ͷը૾Ϧιʔε΍μϛʔσʔλΛ࡞ΔίʔυͳͲΛ੡඼ ൛ͷΞϓϦʢϏϧυʣʹؚΊͣʹࡁΉ
  4. Development Assets • λʔήοτͷઃఆͷGeneralͷ࠷Լ෦ͷ Development Assets • SwiftUIͷϓϩδΣΫτΛ৽ن࡞੒͢Δ ͱ $λʔήοτ໊/Preview

    Content ͱ͍͏ύεͱɺͦͷதʹ Preview Assets ͱ͍͏ΞηοτΧλϩά͕σ ϑΥϧτͰ༻ҙ͞Ε͍ͯΔ • σΟϨΫτϦ୯ҐͰ΋ɺϑΝΠϧ୯Ґ Ͱ΋ࢦఆͰ͖Δ
  5. ։ൃ൛ͷΞϓϦͱ͸ • archiveϏϧυʢͱinstallϏϧυʣͷ࣌ ʹ͸Ϗϧυର৅͔Βআ֎͞ΕΔ • xcodebuild ͷ archive ΞΫγϣϯ ͱ

    install ΞΫγϣϯ • XcodeͷGUI্Ͱ͸ArciveͷΈ • DebugϏϧυͰͷΈ༗ޮͳ༁Ͱ͸ͳ͍ • DebugϏϧυ͚ͩʹߜΓ͍ͨιʔ είʔυʹ͸ #if DEBUG ... #endif ͕ඞཁ
  6. ࢀߟࢿྉ • Mastering Xcode Previews - WWDC19 - Videos -

    Apple Developer • طଘϓϩδΣΫτͰ SwiftUI ͷϓϨϏϡʔػೳΛ࢖͏ Using SwiftUI preview in existing project - ObjecTips • Structure your app for SwiftUI previews - WWDC20 - Videos - Apple Developer • ๩͍͠ਓ޲͚ͷ Structure your app for SwiftUI previews - #WWDC20ʛށըඒ֯ʛnote