Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
arm64のXcodeで開発するまで
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
arayama
December 16, 2021
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
arm64のXcodeで開発するまで
2021/12/15 DMM iOS Meetup #2 の発表資料
arayama
December 16, 2021
Transcript
57 slides
arm64のXcodeで 開発するまで 新山 響生 - 電子書籍事業部 iOSチーム 20新卒 iOSエンジニア 目印は右のイヌアイコン
趣味:最近買ったSwitchでリングフィットアドベンチャー
Apple Silicon Mac 使ってますか
Xcode 使ってますか
Xcode on arm64 ビルドしますか
Xcode on arm64 シミュレータ使いますか
ld: warning: directory not found for option '-F/path/to/Frameworks' ld: in
/path/to/libA.a(object.o), building for iOS Simulator, but linking in object file built for iOS, file '/path/to/libA.a' for architecture arm64 clang: error: linker command failed with exit code 1
Xcode on arm64 ビルドできませんか
Rosetta 2 使ってますか
Xcode on Rosetta 2 ビルドしますか
Build Succeeded !!
ビルドができた
でも
なぜなのか
Xcode on Rosetta 2 避けたいですよね
arm64のXcodeで ビルドするまで 電子書籍事業部 iOSエンジニア 新山 響生
なぜビルドが できたのか
Xcode on Rosetta2 -> x86_64
立ち上がるSimulator -> on x86_64
Fat Binaryに 対応するものが 存在する
Fat arm64 x86_64-simulator
Xcode on Native -> arm64
立ち上がるSimulator -> on arm64
Fat Binaryに 対応するものが 存在しない
Fat arm64 arm64-simulator
キーワード arm64-simulator
対応するとはなにか
arm64-simulator arm64 違いはなにか
バイナリの一部が 違うだけっぽい 参考: https://bogo.wtf/arm64-to-sim.html Static Libraryに限定すると
本体向け: LC_BUILD_VERSION 参考: https://bogo.wtf/arm64-to-sim.html Static Libraryに限定すると
シミュレータ向け: LC_VERSION_MIN_IPHONEOS 参考: https://bogo.wtf/arm64-to-sim.html Static Libraryに限定すると
書き換え実装 あるっぽい 参考: https://github.com/bogo/arm64-to-sim Static Libraryに限定すると
参考: https://github.com/bogo/arm64-to-sim Static Libraryに限定すると
Dynamic Libraryも 別でいけるっぽい 参考:https://bogo.wtf/arm64-to-sim-dylibs.html
ここらへん使えば ビルドできるっぽい
ほんとか??
None
できた
arm64のXcodeで ビルドした 電子書籍事業部 iOSエンジニア 新山 響生
できたけど…
対応がちょっと めんどくさい
それぞれのバイナリに 対して
愛情のこもった 対応作業
しかも
しかも本体向けには 使えない
本体向けは そのままのバイナリ
自動化しましょう
None
作った
ビルド済みライブラリ 後からarm64-sim対応 Static & Dynamic
近日中にOSSとして 公開予定
必須依存のライブラリ
arm64-simulatorに 対応してなかったら
使ってみてください (MITライセンス予定)
本編おわり
一緒に働く仲間を求め中
None
arm64のXcodeで 開発するまで 新山 響生 - 電子書籍事業部 iOSチーム 20新卒 iOSエンジニア 目印は右のイヌアイコン
趣味:最近買ったSwitchでリングフィットアドベンチャー
More Decks by arayama
See All by arayama
Swift Expands!#2 Embedded Swift 事前知識
arasan01
0
310
Swift Expands! #2 OBSプラグインをSwiftで書く on Windows
arasan01
0
220
Swift on Windowsで作るWindowsアプリ
arasan01
0
30
Swift on Windowsでほんとに楽しいアプリ開発
arasan01
0
540
Other Decks in Programming
See All in Programming
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
190
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
GraphQL の onError と Nullability のこれから
quramy
0
220
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
180
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
170
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.2k
オーケストレーション記述言語 Katari
yukikurage
0
260
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
0
240
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
22k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k
A Modern Web Designer's Workflow
chriscoyier
699
190k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
350
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
KATA
mclloyd
PRO
35
16k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450