简体   繁体   中英

Objective-C objects are nil while debugging static library

I have created a custom static library in iOS .

The Project that uses the static library and the static library Project reside in the same workspace. I set it up this way, because it helps me to debug using breakpoints.

When I debug, all the objective-C objects are nil.

How do I view their values?

Even though the application's scheme was in Debug mode, the library was built in Release mode using shell script for creating fat static library. This was the reason for the problem.

When I customised the shell script to throw the relevant fat static library based on the scheme of the Static library Project, this problem did not occur.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM