Permalink
Browse files

Clean up for release

  • Loading branch information...
1 parent 78386e3 commit eef8619c37a83eed2b428e88c3df0c35dd1fe054 @pokeb committed Apr 4, 2009
Showing with 10 additions and 4 deletions.
  1. +3 −3 iPhone Sample/UploadViewController.m
  2. +7 −1 iPhone.xcodeproj/project.pbxproj
@@ -33,12 +33,12 @@ - (IBAction)performLargeUpload:(id)sender
//Create a 256KB file
NSData *data = [[[NSMutableData alloc] initWithLength:256*1024] autorelease];
- NSString *path = [[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"file"];
+ NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"file"];
[data writeToFile:path atomically:NO];
- //Add the file 8 times to the request, for a total request size around 4MB
+ //Add the file 8 times to the request, for a total request size around 2MB
int i;
- for (i=0; i<16; i++) {
+ for (i=0; i<8; i++) {
[request setFile:path forKey:[NSString stringWithFormat:@"file-%hi",i]];
}
@@ -220,8 +220,8 @@
B55B60670F765A930064029C /* QueueViewController.m */,
B55B60690F765A930064029C /* UploadViewController.h */,
B55B606C0F765A930064029C /* UploadViewController.m */,
- B55B606B0F765A930064029C /* iPhoneSampleAppDelegate.m */,
B55B606E0F765A930064029C /* iPhoneSampleAppDelegate.h */,
+ B55B606B0F765A930064029C /* iPhoneSampleAppDelegate.m */,
B55B605F0F765A750064029C /* iPhone_Prefix.pch */,
B55B60600F765A750064029C /* main.m */,
);
@@ -508,25 +508,31 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign";
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "iPhone Sample/iPhone_Prefix.pch";
INFOPLIST_FILE = "iPhone Sample/Info.plist";
PRODUCT_NAME = ASIHTTPRequest;
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
+ SDKROOT = iphoneos2.2.1;
};
name = Debug;
};
1D6058950D05DD3E006BFB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign";
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "iPhone Sample/iPhone_Prefix.pch";
INFOPLIST_FILE = "iPhone Sample/Info.plist";
PRODUCT_NAME = ASIHTTPRequest;
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
+ SDKROOT = iphoneos2.2.1;
};
name = Release;
};

0 comments on commit eef8619

Please sign in to comment.