I use xCode to compile MS Dylibs, It works just fine!
(Using this method:Link)
few hours ago, when I tried to do this:
It said that "UIModalView.h" is required! after a little digging I found out SDK does not provide that header and I have to use toolchain headers!Code:#import <SpringBoard/SBAwayItemsView.h>
so I installed toolchain headers in:
and finally the problem!Code:/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include/
everything works fine before I add these lines as "other C flags":
(without enters! all in the same line)Code:-I/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include -I/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include -F/System/Library/Frameworks -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks -DVERSION='\3.0\'
same issue when just use this as "other c flags":
Now what does substrate.h have to do with this?Code:-I/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include
It uses "objc/runtime.h" and "runtime.h" generates 45 errors of:
and these weird errors appears too:Code:error: expected initializer before 'OBJC2_UNAVAILABLE'
and some other errors.(as it is not familiar with anything!)Code:warning: 'NSString' may not respond to '-stringByReplacingOccurrencesOfString:withString:' error: 'UIFont' was not declared in this scope
What am I supposed to do?
(If it wasn't obvious I'm trying to find a way to use toolchain headers!)
(If possible, I want to use both SDK and toolchain at the same time!)



LinkBack URL
About LinkBacks









Reply With Quote
Bookmarks