Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
arm64のXcodeで開発するまで
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
arayama
December 16, 2021
Programming
100
0
Share
arm64のXcodeで開発するまで
2021/12/15 DMM iOS Meetup #2 の発表資料
arayama
December 16, 2021
More Decks by arayama
See All by arayama
Swift Expands!#2 Embedded Swift 事前知識
arasan01
0
270
Swift Expands! #2 OBSプラグインをSwiftで書く on Windows
arasan01
0
180
Swift on Windowsで作るWindowsアプリ
arasan01
0
14
Swift on Windowsでほんとに楽しいアプリ開発
arasan01
0
440
Other Decks in Programming
See All in Programming
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
460
ふにゃっとしない名前の付け方 〜哲学で茹で上げる、コシのあるソフトウェア設計〜
shimomura
0
130
GitHub Copilot CLIのいいところ
htkym
1
280
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
210
AgentCore Optimizationを始めよう!
licux
3
260
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
1
320
Firefoxにコントリビューションして得られた学び
ken7253
2
170
Are We Really Coding 10× Faster with AI?
kohzas
0
200
空間オーディオの活用
objectiveaudio
0
160
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
290
関係性から理解する"同一性"の型用語たち
pvcresin
2
280
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
580
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
698
190k
Tell your own story through comics
letsgokoyo
1
930
Mind Mapping
helmedeiros
PRO
1
200
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
220
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
120
Building the Perfect Custom Keyboard
takai
2
770
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
140
Docker and Python
trallard
47
3.8k
Done Done
chrislema
186
16k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Navigating Team Friction
lara
192
16k
Transcript
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でリングフィットアドベンチャー