A
A
Alex Palm2016-02-02 02:02:49
iOS
Alex Palm, 2016-02-02 02:02:49

How to edit an Xcode project based on running a static library?

There is software that generates an Xcode project.
An Xcode project consists of this main:
int main(int argc, char *argv[])
{
startApp(argc, argv);
}
That is, it immediately starts the static library included in the project. There is no App Delegate in the project.
Question:
is it possible to somehow run your code before running this library?
What other options are there to customize such an Xcode project?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2016-02-02
@ManWithBear

1) Да, вставить код перед вызовом библиотеки.
2) Читать о Objc-C Runtime и method swizzling.

A
Alex Palm, 2016-04-10
@palmoff Автор вопроса

Я правильно понял, что swizzling подменяет функцию своей ? То есть, например, я подменю ViewDidLoad на свою, но оригинальная не будет выполнена ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question