MQCMobile
Lost but trying
Profile
Posts: 85
Reg: Feb 13, 2011
Oklahoma
5,950
05/15/13 07:51 AM (12 years ago)

Xcode compiling error BT_photo

I'm having trouble compiling an app that I reciently created on my self hosted account. I'm getting a fatal error because the "BT_photo" and BT_photo.h" aren't found. The file that they are referenced in is the BT_screen_quiz.h. The errors are in 2 locations in this file. The first is in the #import section and the second is at the end of the file in the "quiz methods" section [(-void_photoDidFinishLoading:(BT_photo *)photo; and (-void)photoDidFailToLoad:(BT_photo *)photo;] Here's where the errors are: #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "BT_viewController.h" #import "BT_downloader.h" #import "BT_photo.h" #import "BT_item.h" @interface BT_screen_quiz : BT_viewController <BT_downloadFileDelegate, UIActionSheetDelegate, BTPhotoDelegate>{ BT_downloader *downloader; NSString *saveAsFileName; int didInit; int didFinishOnce; int quizDidEnd; and /* quiz methods */ -(void)startQuiz; -(void)answerClick:(id)sender; -(void)countdownToStartUpdate; -(void)countdownToStartDone; -(void)quizRunningLoop; -(void)transitionQuestion; -(void)transitionPoints; -(void)showCorrect; -(void)showIncorrect; -(void)quizEnded; -(void)disableButtons; -(void)enableButtons; -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex; -(void)sendQuizResultsToURL; -(void)showQuizRewardScreen; -(void)showFinishScreen; -(void)setQuestionImage:(UIImage *)theImage; -(void)photoDidFinishLoading:(BT_photo *)photo; -(void)photoDidFailToLoad:(BT_photo *)photo; Has anyone had this problem yet? I've looked on the forum, but I haven't found anyone with this problem. Any help would be appreciated. Thank you in advance.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
05/15/13 08:14 AM (12 years ago)
Not sure. Might need to re-download your source and just copy the quiz plugin into your project again.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/15/13 08:17 AM (12 years ago)
Hi MQCMobile, The file BT_photo was in the past part of the image gallery plugin. That file was taken off from the default pluginlist. The Quizplugin I added at that time on btmods was relying on that file. Only way to solve: 1. delete the old quiz plugin and use the (free) quiz plugin from the plugin market. 2. try to find the old gallery plugin--> install it and everything should work. Hope this helps Best Regards, Danny
 
MQCMobile
Lost but trying
Profile
Posts: 85
Reg: Feb 13, 2011
Oklahoma
5,950
like
05/15/13 09:28 AM (12 years ago)
I don't need the quiz plugin for this app, so I just deleted it and fixed the problem that way. But I did install the new quiz plugin from the market. In looking at the code for the v1.4 interactive quiz it does have a photo.h and .m file there, but when I package the code and download it from my self-hosted control panel, there is no photo.h or .m in the plugin folder. So I add the files from the downloaded quiz plugin, I did resolve the error, but got a new Mach-O error. Any thoughts? I deleted the plugin quiz folder via FTP client, then uploaded a fresh download of the quiz plugin, repackaged the source code and downloaded new source. When running in Xcode, the problem persists (there is still a reference to the photo.m and .h). Like I said, this app really won't need the quiz, but there are a couple of apps that I might make in the future that would.
 

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.