Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-14-2009, 11:54 PM
goldingname
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
goldingname is on a distinguished road
Default Toolchain Headers+Substrate.h+xCode problem!

I use xCode to compile MS Dylibs, It works just fine!
(Using this method:Link)
few hours ago, when I tried to do this:

Code:
#import <SpringBoard/SBAwayItemsView.h>
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!

so I installed toolchain headers in:

Code:
/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include/
and finally the problem!
everything works fine before I add these lines as "other C flags":
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\'
(without enters! all in the same line)
same issue when just use this as "other c flags":
Code:
-I/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include
Now what does substrate.h have to do with this?
It uses "objc/runtime.h" and "runtime.h" generates 45 errors of:
Code:
error: expected initializer before 'OBJC2_UNAVAILABLE'
and these weird errors appears too:
Code:
warning: 'NSString' may not respond to '-stringByReplacingOccurrencesOfString:withString:'
error: 'UIFont' was not declared in this scope
and some other errors.(as it is not familiar with anything!)

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!)

Last edited by goldingname; 08-15-2009 at 12:06 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2.1 Wifi problem - my findings pep_BR General 28 10-29-2009 12:28 PM
[XCode Template] for SDK and Open Toolchain API in firmware 2.0 javacom iPhone Developer Exchange 144 10-12-2009 05:33 AM
iPhone 3gs autofocus problem stubner 3GS General Talk 6 08-04-2009 11:35 PM
Xcode Crash Problem psychofish25 iPhone Developer Exchange 1 07-23-2008 06:32 PM
[Headphones] sensor problem olgv_tm Hardware 19 04-13-2008 01:32 AM



All times are GMT +2. The time now is 10:48 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105