Cheatography
https://cheatography.com
clang - Control the process of build
Compile the source only |
|
Pass extra link args -ObjC |
clang -Wl,"-ObjC" -framework Foundation -weak_framework System main.m App.m TestObjectLib.a -o app
|
Link a static library named TestObjectLib.a |
clang -framework Foundation -weak_framework System main.m App.m TestObjectLib.a -o app
|
ar - Manage static library
Create a static lib named TestObjectLib.a |
ar -rcs TestObjectLib.a TestObject.o TestObject+Ext.o
|
List all the object files in the static lib |
|
List the specific file TestObject.o in the static lib |
ar -t TestObjectLib.a TestObject.o
|
1. We can omit the - symbol before ar
options.
ld - Linker
Link the object files into a binary |
ld -ObjC -framework Foundation -weak_framework System main.o App.o TestObjectLib.a -o app
|
|
|
lipo - create or operate on universal files
Display a brief description of the library |
lipo -info TestObjectLib.a
|
xcrun - Run or locate development tools
codesign - Manipulate code signatures
xcodebuild -- build Xcode projects and workspaces
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets