Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hi! I cleaned up your code for you! #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
iPhone Simulator
iPhone Simulator
----------------

The iPhone Simulator is a simple command line utility for
The iPhone Simulator is a simple command line utility for
launching an iphone application in the simulator. This allows
for nice things like automated testing of unit tests, etc without
having to open XCode.
Expand All @@ -16,21 +16,21 @@

./iphonesim launch ~/tmp/yourproject/build/Debug.simulator/yourproject.app

You need to point to either Debug.simulator or Release.simulator based
You need to point to either Debug.simulator or Release.simulator based
on which build type you built with.


Cheers!

Jeff Haynie
jhaynie@appcelerator.com



Author: Landon Fuller <landonf@plausiblelabs.com>
Copyright (c) 2008 Plausible Labs Cooperative, Inc.
All rights reserved.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
Expand All @@ -42,7 +42,7 @@

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Expand All @@ -51,7 +51,7 @@
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


Modifications made by Appcelerator, Inc. relicensed under
the same license as above.
Expand Down
4 changes: 2 additions & 2 deletions Source/iPhoneSimulator.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ - (int) showSDKs {

- (void) session: (DTiPhoneSimulatorSession *) session didEndWithError: (NSError *) error {
nsprintf(@"Session did end with error %@", error);

if (error != nil)
exit(EXIT_FAILURE);

Expand Down Expand Up @@ -101,7 +101,7 @@ - (int) launchApp: (NSString *) path withFamily:(NSString*)family uuid:(NSString
nsprintf(@"App Spec: %@", appSpec);

/* Load the default SDK root */

nsprintf(@"SDK Root: %@", sdkRoot);

/* Set up the session configuration */
Expand Down
4 changes: 2 additions & 2 deletions Source/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/

/**
* Some modifications made by Appcelerator which are licensed
* Some modifications made by Appcelerator which are licensed
* under the same license as above.
*/

Expand All @@ -40,7 +40,7 @@
int main (int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
iPhoneSimulator *sim = [[iPhoneSimulator alloc] init];

/* Execute command line handler */
[sim runWithArgc: argc argv: argv];

Expand Down
4 changes: 2 additions & 2 deletions Source/nsprintf.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int nsfprintf (FILE *stream, NSString *format, ...) {
va_start(ap, format);
{
retval = nsvfprintf(stream, format, ap);
}
}
va_end(ap);

return retval;
Expand All @@ -35,7 +35,7 @@ int nsprintf (NSString *format, ...) {
va_start(ap, format);
{
retval = nsvfprintf(stderr, format, ap);
}
}
va_end(ap);

return retval;
Expand Down