How to add command line arguments in Xcode 5 November 20, 2013iOS DevelopmentXcodeJay Versluis Same as in Xcode 4 – find the following commands from the Main Menu: Product Scheme – Edit Scheme find Run in the left hand column click the Arguments tab Share this:TwitterFacebookLinkedInPinterestTumblr Related
In AppA I want to open AppB, but I need to pass command-line arguments to it. How do I consume the arguments. Reply
That’s a different scenario: this post discusses how Xcode can pass parameters during the build process. For what you want to do, look into Uniform Type Identifiers (UTI’s). You can use those to define data types in App B that another app can pass when you open from App A. The Apple Documentation has more details: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/understanding_utis/understand_utis.tasks/understand_utis_tasks.html Reply
In AppA I want to open AppB, but I need to pass command-line arguments to it. How do I consume the arguments.
That’s a different scenario: this post discusses how Xcode can pass parameters during the build process. For what you want to do, look into Uniform Type Identifiers (UTI’s). You can use those to define data types in App B that another app can pass when you open from App A. The Apple Documentation has more details: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/understanding_utis/understand_utis.tasks/understand_utis_tasks.html