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
arayama
December 16, 2021
Programming
0
87
arm64のXcodeで開発するまで
2021/12/15 DMM iOS Meetup #2 の発表資料
arayama
December 16, 2021
Tweet
Share
More Decks by arayama
See All by arayama
Swift Expands!#2 Embedded Swift 事前知識
arasan01
0
210
Swift Expands! #2 OBSプラグインをSwiftで書く on Windows
arasan01
0
130
Swift on Windowsで作るWindowsアプリ
arasan01
0
8
Swift on Windowsでほんとに楽しいアプリ開発
arasan01
0
220
Other Decks in Programming
See All in Programming
datadog dash 2025 LLM observability for reliability and stability
ivry_presentationmaterials
0
360
“いい感じ“な定量評価を求めて - Four Keysとアウトカムの間の探求 -
nealle
0
370
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
150
GraphRAGの仕組みまるわかり
tosuri13
8
500
スタートアップの急成長を支えるプラットフォームエンジニアリングと組織戦略
sutochin26
0
170
XP, Testing and ninja testing
m_seki
3
220
Team topologies and the microservice architecture: a synergistic relationship
cer
PRO
0
1.1k
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
660
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
2
150
すべてのコンテキストを、 ユーザー価値に変える
applism118
2
1k
WebViewの現在地 - SwiftUI時代のWebKit - / The Current State Of WebView
marcy731
0
100
Team operations that are not burdened by SRE
kazatohiei
1
290
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
The Pragmatic Product Professional
lauravandoore
35
6.7k
A designer walks into a library…
pauljervisheath
207
24k
It's Worth the Effort
3n
185
28k
Building an army of robots
kneath
306
45k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
230
Gamification - CAS2011
davidbonilla
81
5.3k
The Invisible Side of Design
smashingmag
300
51k
Thoughts on Productivity
jonyablonski
69
4.7k
Fireside Chat
paigeccino
37
3.5k
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でリングフィットアドベンチャー