Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 72

Merchantguy
Aspiring developer
Profile
Posts: 21
Reg: Feb 10, 2012
SLC
210
03/12/12 10:00 AM (13 years ago)

Plugin modify the .plist

I have a plugin that needs to add an external accessory to the applications .plist in order for it to work. while I can download the source code and then modify the .plist manually, this is a plugin that I'm hoping to re-use and don't want to have to manually modify each and every time. In addition I try to load the external accessory framework but it doesn't get included and I've had to add it manually. Ideas? When I add it manually my plugin works great - just trying to streamline the process. Thank you.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
03/12/12 12:00 PM (13 years ago)
Hi Merchantguy, Are you willing to share your code so other people can have a look and come with possible solutions? Best Regards, Danny
 
Merchantguy
Aspiring developer
Profile
Posts: 21
Reg: Feb 10, 2012
SLC
210
like
03/12/12 07:53 PM (13 years ago)
Danny, Thanks for the response. After spending today on it there are two main issues I'm getting: 1. The ExternalAccessory.framework won't load 2. Not sure how to register the external with the BT .plist I have one main controller with a helper that is constantly listening for the device and notifies my main controller if found. currently I import: #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "BT_viewController.h" #import <ExternalAccessory/ExternalAccessory.h> #import "iMag.h" in my main ViewController - but the framework doesn't load with the application. And I have no idea how to register something in the BT_info.plist file from within a plugin. If I download my sourcecode, copy the framework and the array into the .plist then the plugin works as designed - but i hate to have to do that with every implementation. Thanks, Peter
 

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.