Skip to content
Browse files

Fixed all warnings in Xcode 4.x and fixed iOS5 bug mentioned in issue #…

  • Loading branch information...
1 parent e3fd3f7 commit 8b3bb836f71b8fd49e41c3f0a66bfb81bec72634 @Hoya committed Dec 10, 2011
View
40 Demo/OAuthTwitterDemo.xcodeproj/project.pbxproj
@@ -294,7 +294,11 @@
isa = PBXProject;
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "OAuthTwitterDemo" */;
compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
hasScannedForEncodings = 1;
+ knownRegions = (
+ en,
+ );
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
projectDirPath = "";
projectRoot = "";
@@ -350,44 +354,40 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Src/OAuthTwitterDemo_Prefix.pch;
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2/**";
INFOPLIST_FILE = "Rsc/OAuthTwitterDemo-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
- "\"$(SRCROOT)/../OAuthConsumer-iPhone/build/Debug-iphoneos\"",
- "\"$(SRCROOT)/../OAuthConsumer-iPhone/build/Debug-iphonesimulator\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug-iphoneos\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug-iphonesimulator\"",
"\"$(SRCROOT)/../OAuthConsumeriPhoneLib\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug\"",
"\"$(SRCROOT)/../Twitter+OAuth/Libraries & Headers\"",
);
PRODUCT_NAME = OAuthTwitterDemo;
+ PROVISIONING_PROFILE = "";
};
name = Debug;
};
1D6058950D05DD3E006BFB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ CODE_SIGN_IDENTITY = "";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Src/OAuthTwitterDemo_Prefix.pch;
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2/**";
INFOPLIST_FILE = "Rsc/OAuthTwitterDemo-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
- "\"$(SRCROOT)/../OAuthConsumer-iPhone/build/Debug-iphoneos\"",
- "\"$(SRCROOT)/../OAuthConsumer-iPhone/build/Debug-iphonesimulator\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug-iphoneos\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug-iphonesimulator\"",
"\"$(SRCROOT)/../OAuthConsumeriPhoneLib\"",
- "\"$(SRCROOT)/../OAuthConsumeriPhoneLib/build/Debug\"",
"\"$(SRCROOT)/../Twitter+OAuth/Libraries & Headers\"",
);
PRODUCT_NAME = OAuthTwitterDemo;
@@ -397,26 +397,36 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ ARCHS = (
+ armv6,
+ armv7,
+ );
+ CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PREBINDING = NO;
- SDKROOT = iphoneos2.2.1;
+ PROVISIONING_PROFILE = "";
+ SDKROOT = iphoneos;
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ ARCHS = (
+ armv6,
+ armv7,
+ );
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PREBINDING = NO;
- SDKROOT = iphoneos2.2.1;
+ SDKROOT = iphoneos;
};
name = Release;
};
View
7 Demo/OAuthTwitterDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:OAuthTwitterDemo.xcodeproj">
+ </FileRef>
+</Workspace>
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/Hoya.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
84 ...AuthTwitterDemo.xcodeproj/xcuserdata/Hoya.xcuserdatad/xcschemes/OAuthTwitterDemo.xcscheme
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
+ BuildableName = "OAuthTwitterDemo.app"
+ BlueprintName = "OAuthTwitterDemo"
+ ReferencedContainer = "container:OAuthTwitterDemo.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
+ BuildableName = "OAuthTwitterDemo.app"
+ BlueprintName = "OAuthTwitterDemo"
+ ReferencedContainer = "container:OAuthTwitterDemo.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
+ BuildableName = "OAuthTwitterDemo.app"
+ BlueprintName = "OAuthTwitterDemo"
+ ReferencedContainer = "container:OAuthTwitterDemo.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
+ BuildableName = "OAuthTwitterDemo.app"
+ BlueprintName = "OAuthTwitterDemo"
+ ReferencedContainer = "container:OAuthTwitterDemo.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
22 ...OAuthTwitterDemo.xcodeproj/xcuserdata/Hoya.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>OAuthTwitterDemo.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>1D6058900D05DD3D006BFB54</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
7 ...riPhoneLib/OAuthConsumer-iPhoneLib.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:OAuthConsumer-iPhoneLib.xcodeproj">
+ </FileRef>
+</Workspace>
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/Hoya.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
57 ...OAuthConsumer-iPhoneLib.xcodeproj/xcuserdata/Hoya.xcuserdatad/xcschemes/OAuthLib.xcscheme
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "D2AAC07D0554694100DB518D"
+ BuildableName = "libOAuthConsumer_iPhone.a"
+ BlueprintName = "OAuthLib"
+ ReferencedContainer = "container:OAuthConsumer-iPhoneLib.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
22 ...nsumer-iPhoneLib.xcodeproj/xcuserdata/Hoya.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>OAuthLib.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>D2AAC07D0554694100DB518D</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
2 Twitter+OAuth/MGTwitterEngine/MGTwitterEngine.m
@@ -95,7 +95,7 @@ + (MGTwitterEngine *)twitterEngineWithDelegate:(NSObject *)theDelegate
}
-- (MGTwitterEngine *)initWithDelegate:(NSObject *)newDelegate
+- (MGTwitterEngine *)initWithDelegate:(NSObject<MGTwitterEngineDelegate>*)newDelegate
{
if (self = [super init]) {
_delegate = newDelegate; // deliberately weak reference
View
2 Twitter+OAuth/MGTwitterEngine/MGTwitterLibXMLParser.m
@@ -32,7 +32,7 @@ + (id)parserWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
}
-- (id)initWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
+- (id)initWithXML:(NSData *)theXML delegate:(NSObject<MGTwitterParserDelegate> *)theDelegate
connectionIdentifier:(NSString *)theIdentifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType URL:(NSURL *)theURL
{
View
3 Twitter+OAuth/MGTwitterEngine/MGTwitterStatusesParser.h
@@ -13,5 +13,6 @@
@interface MGTwitterStatusesParser : MGTwitterXMLParser {
}
-
+- (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName
+ namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
@end
View
4 Twitter+OAuth/MGTwitterEngine/MGTwitterXMLParser.h
@@ -10,7 +10,7 @@
#import "MGTwitterParserDelegate.h"
-@interface MGTwitterXMLParser : NSObject {
+@interface MGTwitterXMLParser : NSObject <NSXMLParserDelegate> {
__weak NSObject <MGTwitterParserDelegate> *delegate; // weak ref
NSString *identifier;
MGTwitterRequestType requestType;
@@ -28,6 +28,8 @@ connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)re
- (id)initWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType;
+- (void)parser:(NSXMLParser *)theParser didEndElement:(NSString *)elementName
+ namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
- (NSString *)lastOpenedElement;
- (void)setLastOpenedElement:(NSString *)value;
View
2 Twitter+OAuth/MGTwitterEngine/MGTwitterXMLParser.m
@@ -28,7 +28,7 @@ + (id)parserWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
}
-- (id)initWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
+- (id)initWithXML:(NSData *)theXML delegate:(NSObject <MGTwitterParserDelegate> *)theDelegate
connectionIdentifier:(NSString *)theIdentifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType
{
View
2 Twitter+OAuth/MGTwitterEngine/NSData+Base64.m
@@ -32,7 +32,7 @@ - (id) initWithBase64EncodedString:(NSString *) string {
unsigned long ixtext = 0;
unsigned long lentext = 0;
unsigned char ch = 0;
- unsigned char inbuf[3], outbuf[4];
+ unsigned char inbuf[4], outbuf[4];
short i = 0, ixinbuf = 0;
BOOL flignore = NO;
BOOL flendtext = NO;
View
6 Twitter+OAuth/SAOAuthTwitterEngine/SA_OAuthTwitterEngine.m
@@ -62,9 +62,9 @@ + (SA_OAuthTwitterEngine *) OAuthTwitterEngineWithDelegate: (NSObject *) delegat
- (SA_OAuthTwitterEngine *) initOAuthWithDelegate: (NSObject *) delegate {
if (self = (id) [super initWithDelegate: delegate]) {
- self.requestTokenURL = [NSURL URLWithString: @"http://twitter.com/oauth/request_token"];
- self.accessTokenURL = [NSURL URLWithString: @"http://twitter.com/oauth/access_token"];
- self.authorizeURL = [NSURL URLWithString: @"http://twitter.com/oauth/authorize"];
+ self.requestTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/request_token"];
+ self.accessTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/access_token"];
+ self.authorizeURL = [NSURL URLWithString: @"https://twitter.com/oauth/authorize"];
}
return self;
}

0 comments on commit 8b3bb83

Please sign in to comment.
Something went wrong with that request. Please try again.