Skip to content

Commit

Permalink
Fix 2.2.1 Simulator build
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed Jun 25, 2009
1 parent bb72651 commit 4c8ff10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Classes/ASIHTTPRequest.m
Expand Up @@ -447,7 +447,16 @@ - (void)startRequest

// Detect proxy settings and apply them
#if TARGET_OS_IPHONE
#if TARGET_IPHONE_SIMULATOR
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_2_2
NSDictionary *proxySettings = [(NSDictionary *)CFNetworkCopySystemProxySettings() autorelease];
#else
// Can't detect proxies in 2.2.1 Simulator
NSDictionary *proxySettings = [NSMutableDictionary dictionary];
#endif
#else
NSDictionary *proxySettings = [(NSDictionary *)CFNetworkCopySystemProxySettings() autorelease];
#endif
#else
NSDictionary *proxySettings = [(NSDictionary *)SCDynamicStoreCopyProxies(NULL) autorelease];
#endif
Expand Down
2 changes: 1 addition & 1 deletion iPhone Sample/Info.plist
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>iphone-icon.png</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
<string>com.allseeinginteractive.trailsnetwork.asitest</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down
8 changes: 4 additions & 4 deletions iPhone.xcodeproj/project.pbxproj
Expand Up @@ -359,15 +359,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Ben Copsey";
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*]" = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "DF9A6444-9A4F-4BAA-B338-0025D6F53459";
SDKROOT = iphoneos2.2.1;
};
name = Debug;
Expand All @@ -376,13 +376,13 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Ben Copsey";
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*]" = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "DF9A6444-9A4F-4BAA-B338-0025D6F53459";
SDKROOT = iphoneos2.2.1;
};
name = Release;
Expand Down

0 comments on commit 4c8ff10

Please sign in to comment.