Discussion Forums  >  Uncategorized

Replies: 4    Views: 1218

appvision
Aspiring developer
Profile
Posts: 139
Reg: Jan 20, 2011
location unknow...
1,390
03/07/11 05:00 AM (14 years ago)

Can I iOS SDK 4.3 & Xcode 3.2.6 with buzzcode?

I have installed iOS SDK 4.3 & Xcode 3.2.6. When I build a project that was previously compiled using the prior version of Xcode the build fails and I get multiple errors: BT_Layout/BT_rotatingNavController.h:9:0 /BT_Layout/BT_rotatingNavController.h:9: error: cannot find protocol declaration for 'MFMessageComposeViewControllerDelegate' BT_Layout/BT_rotatingNavController.h:23:0 /BT_Layout/BT_rotatingNavController.h:23: error: expected ')' before 'MFMessageComposeViewController' BT_Layout/BT_rotatingNavController.h:23:0 /BT_Layout/BT_rotatingNavController.h:23: error: expected ')' before 'MessageComposeResult' Is there a fix for this? If I build a new project the build succeeds without error. Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/07/11 12:11 PM (14 years ago)
Hi...We havn't done anything yet with 4.3 (officially) so I havn't seen this problem YET! I'm thinking the multiple errors are all caused by the same issue. The comiler sometimes 'freaks out' when it encounters one error and other errors get reported. This means we'll need to figure out the cause of the 'first error' and see if the others go away. Kind of a one-by-one process. Because the source-code compiles in previous SDK's, the problem is probably not a syntax error or a typo or something in the code. It's probably more along the lines of the newer SDK not understandting something about how the project is setup. The MFMessageComposeViewController delegate information is important and it tells the compiler some key information. I wonder if the new SDK can't find the Framework for this protocol? Lets start by making sure the necessary framework is included in your project. In the Xcode project, scroll down and expand the folder Frameworks folders. You should see a list of all the frameworks necessary to build the project. If they are RED it means the SDK doesn't know where they are located on your machine. Again, common when updating the SDK. Specifically, we are looking for the MessageUI.framework, this is the one that understands what the MFMessageComposeViewController is. You can easily re-add the needed frameworks to your project (if they are red or missing?). Do this by control-clicking the Frameworks folder then choosing Add > Exisitng Frameworks. When adding existing Frameworks, your saying 'hey Xcode, I need the compiler to look at and understand this framework when I compile' Do this for each framework that is appears missing and see what happens when you build. We have updated the README.txt file that comes with the download, it now lists all the frameworks necessary to compile the project. You should not have to mess with this complexity in normal circumstances. However, this seems like the place to start so we can sort-out why the newest SDK on your machine won't compile the project. Kindly re-post what you find, if it solved anythign, or if you are still stuck.
 
appvision
Aspiring developer
Profile
Posts: 139
Reg: Jan 20, 2011
location unknow...
1,390
like
03/07/11 12:43 PM (14 years ago)
All the frameworks necessary to build the project are included.
 
vizsladriver
Code is Art
Profile
Posts: 1
Reg: Mar 18, 2011
San Diego CA
10
like
03/18/11 06:41 PM (14 years ago)
Hi nelsonlo, We ran into the same problem when we upgraded to Xcode 3.2.6/iOS SDK 4.3, and finally got it to work after beating our heads on it for a few hours. As best I can remember, this is what got it to work again: 1) Project -> Edit Project Settings and set Base SDK to Latest iOS (iOS SDK 4.3) and iOS Deployment Target to iOS 4.0. 2) Project -> Edit Active Target and set Base SDK to Latest iOS (iOS SDK 4.3) and iOS Deployment Target to iOS 4.0. Somehow this got set back to iOS 3.1 when we opened the project in the new Xcode (!). 3) In the drop down in the upper left we had to change from Simulator to Device and back to Simulator for step (2) to take effect. 4) Clean and Build Hope this helps!
 
mtrishin
Code is Art
Profile
Posts: 8
Reg: Oct 18, 2011
N.Novgorod
80
like
10/19/11 12:46 PM (14 years ago)
Thanks vizsladriver ! helps me today when I try to test my first app and have got same error :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.