Permalink
Browse files

Fix 2.2.1 Simulator build

  • Loading branch information...
1 parent bb72651 commit 4c8ff10074beed36b7c5deb090365174613dd34c @pokeb committed Jun 25, 2009
Showing with 14 additions and 5 deletions.
  1. +9 −0 Classes/ASIHTTPRequest.m
  2. +1 −1 iPhone Sample/Info.plist
  3. +4 −4 iPhone.xcodeproj/project.pbxproj
View
@@ -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
View
@@ -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>
@@ -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;
@@ -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;

0 comments on commit 4c8ff10

Please sign in to comment.