Digital Media Mac Blogs > Mac

iPhone: Running concurrent Purple Apps


If you've done iPhone command-line programming, you've probably run into the dreaded Purple app errors. The iPhone complains that it couldn't register with the bootstrap server. This happens when the iPhone attempts to run more than one Purple application from the command line.

Fortunately this problem is easily fixed. Create a folder for each of your applications, place the apps into the folders and add an Info.plist for each. You don't have to name the folders with the .app extension but on the other hand, it doesn't hurt.

Each Info.plist must define a CFBundleIdentifier for the application. The bundle identifier is arbitrary. I use Apple's naming scheme, e.g. com.ericasadun.myBundleName. The iPhone OS detects the Info.plist with its unique bundle identifier when launching the Purple app. This keeps the application from conflicting with other Purple apps and prevents those Unknown Purple App errors you may have seen.

Thanks to Nate True for figuring this out!

Categories





AddThis Social Bookmark Button
Comments (1)
Read More Entries by Erica Sadun.

1 Comments

amanyus said:

How about command line utilities like screenshot which produce the same error, how do I solve that?

Leave a comment


Type the characters you see in the picture above.

Recommended for You

Topics of Interest

Archives


 
 


Or, visit our complete archive.