From 29f72094eaa529a39719615bc97c2fb9c75c8dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=A1=D0=B5=D0=B4=D0=BE=D0=B2?= Date: Tue, 30 Sep 2014 11:29:20 +0600 Subject: [PATCH] + parser settings, fix Xcode6 & iOS8 build issues --- .../project.pbxproj | 1687 ++++++++++++----- AFXMLDictionarySerializer/AppDelegate.m | 69 +- Classes/AFXMLDictionaryResponseSerializer.h | 4 + Classes/AFXMLDictionaryResponseSerializer.m | 81 +- Classes/XMLDictionarySettings.h | 23 + Classes/XMLDictionarySettings.m | 25 + Podfile | 2 +- Podfile.lock | 23 +- 8 files changed, 1312 insertions(+), 602 deletions(-) create mode 100644 Classes/XMLDictionarySettings.h create mode 100644 Classes/XMLDictionarySettings.m diff --git a/AFXMLDictionarySerializer.xcodeproj/project.pbxproj b/AFXMLDictionarySerializer.xcodeproj/project.pbxproj index 0e481ba..98ec0d2 100644 --- a/AFXMLDictionarySerializer.xcodeproj/project.pbxproj +++ b/AFXMLDictionarySerializer.xcodeproj/project.pbxproj @@ -1,519 +1,1168 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0166BEAD15614B849672C2FB /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B615345ED2CF4A2BAE0479C0 /* libPods.a */; }; - 950382A218063DDF003FBE11 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382A118063DDF003FBE11 /* Foundation.framework */; }; - 950382A418063DDF003FBE11 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382A318063DDF003FBE11 /* CoreGraphics.framework */; }; - 950382A618063DDF003FBE11 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382A518063DDF003FBE11 /* UIKit.framework */; }; - 950382AC18063DDF003FBE11 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 950382AA18063DDF003FBE11 /* InfoPlist.strings */; }; - 950382AE18063DDF003FBE11 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 950382AD18063DDF003FBE11 /* main.m */; }; - 950382B218063DDF003FBE11 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 950382B118063DDF003FBE11 /* AppDelegate.m */; }; - 950382BB18063DDF003FBE11 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382BA18063DDF003FBE11 /* XCTest.framework */; }; - 950382BC18063DDF003FBE11 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382A118063DDF003FBE11 /* Foundation.framework */; }; - 950382BD18063DDF003FBE11 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 950382A518063DDF003FBE11 /* UIKit.framework */; }; - 950382C518063DDF003FBE11 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 950382C318063DDF003FBE11 /* InfoPlist.strings */; }; - 950382C718063DDF003FBE11 /* AFXMLDictionarySerializerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 950382C618063DDF003FBE11 /* AFXMLDictionarySerializerTests.m */; }; - 950382D318063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = 950382D218063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.m */; }; - 950382D9180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = 950382D8180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 950382BE18063DDF003FBE11 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 9503829618063DDF003FBE11 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9503829D18063DDF003FBE11; - remoteInfo = AFXMLDictionarySerializer; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 9503829E18063DDF003FBE11 /* AFXMLDictionarySerializer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AFXMLDictionarySerializer.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 950382A118063DDF003FBE11 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 950382A318063DDF003FBE11 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 950382A518063DDF003FBE11 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 950382A918063DDF003FBE11 /* AFXMLDictionarySerializer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AFXMLDictionarySerializer-Info.plist"; sourceTree = ""; }; - 950382AB18063DDF003FBE11 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 950382AD18063DDF003FBE11 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 950382AF18063DDF003FBE11 /* AFXMLDictionarySerializer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AFXMLDictionarySerializer-Prefix.pch"; sourceTree = ""; }; - 950382B018063DDF003FBE11 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 950382B118063DDF003FBE11 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 950382B918063DDF003FBE11 /* AFXMLDictionarySerializerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFXMLDictionarySerializerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 950382BA18063DDF003FBE11 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 950382C218063DDF003FBE11 /* AFXMLDictionarySerializerTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AFXMLDictionarySerializerTests-Info.plist"; sourceTree = ""; }; - 950382C418063DDF003FBE11 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 950382C618063DDF003FBE11 /* AFXMLDictionarySerializerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AFXMLDictionarySerializerTests.m; sourceTree = ""; }; - 950382D118063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AFXMLDictionaryResponseSerializer.h; path = Classes/AFXMLDictionaryResponseSerializer.h; sourceTree = ""; }; - 950382D218063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AFXMLDictionaryResponseSerializer.m; path = Classes/AFXMLDictionaryResponseSerializer.m; sourceTree = ""; }; - 950382D7180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AFXMLDictionaryRequestSerializer.h; path = Classes/AFXMLDictionaryRequestSerializer.h; sourceTree = ""; }; - 950382D8180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AFXMLDictionaryRequestSerializer.m; path = Classes/AFXMLDictionaryRequestSerializer.m; sourceTree = ""; }; - B615345ED2CF4A2BAE0479C0 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; - E5000D0F11544FB5BCDD77B8 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 9503829B18063DDF003FBE11 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382A418063DDF003FBE11 /* CoreGraphics.framework in Frameworks */, - 950382A618063DDF003FBE11 /* UIKit.framework in Frameworks */, - 950382A218063DDF003FBE11 /* Foundation.framework in Frameworks */, - 0166BEAD15614B849672C2FB /* libPods.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 950382B618063DDF003FBE11 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382BB18063DDF003FBE11 /* XCTest.framework in Frameworks */, - 950382BD18063DDF003FBE11 /* UIKit.framework in Frameworks */, - 950382BC18063DDF003FBE11 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9503829518063DDF003FBE11 = { - isa = PBXGroup; - children = ( - 950382D018063E5B003FBE11 /* Classes */, - 950382A718063DDF003FBE11 /* AFXMLDictionarySerializer */, - 950382C018063DDF003FBE11 /* AFXMLDictionarySerializerTests */, - 950382A018063DDF003FBE11 /* Frameworks */, - 9503829F18063DDF003FBE11 /* Products */, - E5000D0F11544FB5BCDD77B8 /* Pods.xcconfig */, - ); - sourceTree = ""; - }; - 9503829F18063DDF003FBE11 /* Products */ = { - isa = PBXGroup; - children = ( - 9503829E18063DDF003FBE11 /* AFXMLDictionarySerializer.app */, - 950382B918063DDF003FBE11 /* AFXMLDictionarySerializerTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 950382A018063DDF003FBE11 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 950382A118063DDF003FBE11 /* Foundation.framework */, - 950382A318063DDF003FBE11 /* CoreGraphics.framework */, - 950382A518063DDF003FBE11 /* UIKit.framework */, - 950382BA18063DDF003FBE11 /* XCTest.framework */, - B615345ED2CF4A2BAE0479C0 /* libPods.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 950382A718063DDF003FBE11 /* AFXMLDictionarySerializer */ = { - isa = PBXGroup; - children = ( - 950382B018063DDF003FBE11 /* AppDelegate.h */, - 950382B118063DDF003FBE11 /* AppDelegate.m */, - 950382A818063DDF003FBE11 /* Supporting Files */, - ); - path = AFXMLDictionarySerializer; - sourceTree = ""; - }; - 950382A818063DDF003FBE11 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 950382A918063DDF003FBE11 /* AFXMLDictionarySerializer-Info.plist */, - 950382AA18063DDF003FBE11 /* InfoPlist.strings */, - 950382AD18063DDF003FBE11 /* main.m */, - 950382AF18063DDF003FBE11 /* AFXMLDictionarySerializer-Prefix.pch */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 950382C018063DDF003FBE11 /* AFXMLDictionarySerializerTests */ = { - isa = PBXGroup; - children = ( - 950382C618063DDF003FBE11 /* AFXMLDictionarySerializerTests.m */, - 950382C118063DDF003FBE11 /* Supporting Files */, - ); - path = AFXMLDictionarySerializerTests; - sourceTree = ""; - }; - 950382C118063DDF003FBE11 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 950382C218063DDF003FBE11 /* AFXMLDictionarySerializerTests-Info.plist */, - 950382C318063DDF003FBE11 /* InfoPlist.strings */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 950382D018063E5B003FBE11 /* Classes */ = { - isa = PBXGroup; - children = ( - 950382D7180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.h */, - 950382D8180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.m */, - 950382D118063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.h */, - 950382D218063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.m */, - ); - name = Classes; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 9503829D18063DDF003FBE11 /* AFXMLDictionarySerializer */ = { - isa = PBXNativeTarget; - buildConfigurationList = 950382CA18063DDF003FBE11 /* Build configuration list for PBXNativeTarget "AFXMLDictionarySerializer" */; - buildPhases = ( - 4A39B659238B4ED0AAD94266 /* Check Pods Manifest.lock */, - 9503829A18063DDF003FBE11 /* Sources */, - 9503829B18063DDF003FBE11 /* Frameworks */, - 9503829C18063DDF003FBE11 /* Resources */, - B9FD310CA49E4706AD5ACE05 /* Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = AFXMLDictionarySerializer; - productName = AFXMLDictionarySerializer; - productReference = 9503829E18063DDF003FBE11 /* AFXMLDictionarySerializer.app */; - productType = "com.apple.product-type.application"; - }; - 950382B818063DDF003FBE11 /* AFXMLDictionarySerializerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 950382CD18063DDF003FBE11 /* Build configuration list for PBXNativeTarget "AFXMLDictionarySerializerTests" */; - buildPhases = ( - 950382B518063DDF003FBE11 /* Sources */, - 950382B618063DDF003FBE11 /* Frameworks */, - 950382B718063DDF003FBE11 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 950382BF18063DDF003FBE11 /* PBXTargetDependency */, - ); - name = AFXMLDictionarySerializerTests; - productName = AFXMLDictionarySerializerTests; - productReference = 950382B918063DDF003FBE11 /* AFXMLDictionarySerializerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 9503829618063DDF003FBE11 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0500; - ORGANIZATIONNAME = "Ideais Mobile"; - TargetAttributes = { - 950382B818063DDF003FBE11 = { - TestTargetID = 9503829D18063DDF003FBE11; - }; - }; - }; - buildConfigurationList = 9503829918063DDF003FBE11 /* Build configuration list for PBXProject "AFXMLDictionarySerializer" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 9503829518063DDF003FBE11; - productRefGroup = 9503829F18063DDF003FBE11 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 9503829D18063DDF003FBE11 /* AFXMLDictionarySerializer */, - 950382B818063DDF003FBE11 /* AFXMLDictionarySerializerTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 9503829C18063DDF003FBE11 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382AC18063DDF003FBE11 /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 950382B718063DDF003FBE11 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382C518063DDF003FBE11 /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 4A39B659238B4ED0AAD94266 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - B9FD310CA49E4706AD5ACE05 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 9503829A18063DDF003FBE11 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382B218063DDF003FBE11 /* AppDelegate.m in Sources */, - 950382AE18063DDF003FBE11 /* main.m in Sources */, - 950382D9180645ED003FBE11 /* AFXMLDictionaryRequestSerializer.m in Sources */, - 950382D318063E7B003FBE11 /* AFXMLDictionaryResponseSerializer.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 950382B518063DDF003FBE11 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 950382C718063DDF003FBE11 /* AFXMLDictionarySerializerTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 950382BF18063DDF003FBE11 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 9503829D18063DDF003FBE11 /* AFXMLDictionarySerializer */; - targetProxy = 950382BE18063DDF003FBE11 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 950382AA18063DDF003FBE11 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 950382AB18063DDF003FBE11 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - 950382C318063DDF003FBE11 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 950382C418063DDF003FBE11 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 950382C818063DDF003FBE11 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 950382C918063DDF003FBE11 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 950382CB18063DDF003FBE11 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E5000D0F11544FB5BCDD77B8 /* Pods.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch"; - INFOPLIST_FILE = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 950382CC18063DDF003FBE11 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E5000D0F11544FB5BCDD77B8 /* Pods.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch"; - INFOPLIST_FILE = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 950382CE18063DDF003FBE11 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AFXMLDictionarySerializer.app/AFXMLDictionarySerializer"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "AFXMLDictionarySerializerTests/AFXMLDictionarySerializerTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Debug; - }; - 950382CF18063DDF003FBE11 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/AFXMLDictionarySerializer.app/AFXMLDictionarySerializer"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch"; - INFOPLIST_FILE = "AFXMLDictionarySerializerTests/AFXMLDictionarySerializerTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 9503829918063DDF003FBE11 /* Build configuration list for PBXProject "AFXMLDictionarySerializer" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 950382C818063DDF003FBE11 /* Debug */, - 950382C918063DDF003FBE11 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 950382CA18063DDF003FBE11 /* Build configuration list for PBXNativeTarget "AFXMLDictionarySerializer" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 950382CB18063DDF003FBE11 /* Debug */, - 950382CC18063DDF003FBE11 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 950382CD18063DDF003FBE11 /* Build configuration list for PBXNativeTarget "AFXMLDictionarySerializerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 950382CE18063DDF003FBE11 /* Debug */, - 950382CF18063DDF003FBE11 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 9503829618063DDF003FBE11 /* Project object */; -} + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 0166BEAD15614B849672C2FB + + fileRef + B615345ED2CF4A2BAE0479C0 + isa + PBXBuildFile + + 142914DB589D2C78BF981D71 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods.debug.xcconfig + path + Pods/Target Support Files/Pods/Pods.debug.xcconfig + sourceTree + <group> + + 3179EB114E092BC37F1A1363 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods.release.xcconfig + path + Pods/Target Support Files/Pods/Pods.release.xcconfig + sourceTree + <group> + + 4A39B659238B4ED0AAD94266 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Check Pods Manifest.lock + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null +if [[ $? != 0 ]] ; then + cat << EOM +error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. +EOM + exit 1 +fi + + showEnvVarsInLog + 0 + + 753FF7D12F8E35677EE8454A + + children + + 142914DB589D2C78BF981D71 + 3179EB114E092BC37F1A1363 + + isa + PBXGroup + name + Pods + sourceTree + <group> + + 9503829518063DDF003FBE11 + + children + + 950382D018063E5B003FBE11 + 950382A718063DDF003FBE11 + 950382C018063DDF003FBE11 + 950382A018063DDF003FBE11 + 9503829F18063DDF003FBE11 + 753FF7D12F8E35677EE8454A + + isa + PBXGroup + sourceTree + <group> + + 9503829618063DDF003FBE11 + + attributes + + LastUpgradeCheck + 0500 + ORGANIZATIONNAME + Ideais Mobile + TargetAttributes + + 950382B818063DDF003FBE11 + + TestTargetID + 9503829D18063DDF003FBE11 + + + + buildConfigurationList + 9503829918063DDF003FBE11 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + + mainGroup + 9503829518063DDF003FBE11 + productRefGroup + 9503829F18063DDF003FBE11 + projectDirPath + + projectReferences + + projectRoot + + targets + + 9503829D18063DDF003FBE11 + 950382B818063DDF003FBE11 + + + 9503829918063DDF003FBE11 + + buildConfigurations + + 950382C818063DDF003FBE11 + 950382C918063DDF003FBE11 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 9503829A18063DDF003FBE11 + + buildActionMask + 2147483647 + files + + C81610F419DA6A8E0005553A + 950382B218063DDF003FBE11 + 950382AE18063DDF003FBE11 + 950382D9180645ED003FBE11 + 950382D318063E7B003FBE11 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 9503829B18063DDF003FBE11 + + buildActionMask + 2147483647 + files + + 950382A418063DDF003FBE11 + 950382A618063DDF003FBE11 + 950382A218063DDF003FBE11 + 0166BEAD15614B849672C2FB + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 9503829C18063DDF003FBE11 + + buildActionMask + 2147483647 + files + + 950382AC18063DDF003FBE11 + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 9503829D18063DDF003FBE11 + + buildConfigurationList + 950382CA18063DDF003FBE11 + buildPhases + + 4A39B659238B4ED0AAD94266 + 9503829A18063DDF003FBE11 + 9503829B18063DDF003FBE11 + 9503829C18063DDF003FBE11 + B9FD310CA49E4706AD5ACE05 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + AFXMLDictionarySerializer + productName + AFXMLDictionarySerializer + productReference + 9503829E18063DDF003FBE11 + productType + com.apple.product-type.application + + 9503829E18063DDF003FBE11 + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + AFXMLDictionarySerializer.app + sourceTree + BUILT_PRODUCTS_DIR + + 9503829F18063DDF003FBE11 + + children + + 9503829E18063DDF003FBE11 + 950382B918063DDF003FBE11 + + isa + PBXGroup + name + Products + sourceTree + <group> + + 950382A018063DDF003FBE11 + + children + + 950382A118063DDF003FBE11 + 950382A318063DDF003FBE11 + 950382A518063DDF003FBE11 + 950382BA18063DDF003FBE11 + B615345ED2CF4A2BAE0479C0 + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + 950382A118063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + Foundation.framework + path + System/Library/Frameworks/Foundation.framework + sourceTree + SDKROOT + + 950382A218063DDF003FBE11 + + fileRef + 950382A118063DDF003FBE11 + isa + PBXBuildFile + + 950382A318063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + CoreGraphics.framework + path + System/Library/Frameworks/CoreGraphics.framework + sourceTree + SDKROOT + + 950382A418063DDF003FBE11 + + fileRef + 950382A318063DDF003FBE11 + isa + PBXBuildFile + + 950382A518063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + UIKit.framework + path + System/Library/Frameworks/UIKit.framework + sourceTree + SDKROOT + + 950382A618063DDF003FBE11 + + fileRef + 950382A518063DDF003FBE11 + isa + PBXBuildFile + + 950382A718063DDF003FBE11 + + children + + 950382B018063DDF003FBE11 + 950382B118063DDF003FBE11 + 950382A818063DDF003FBE11 + + isa + PBXGroup + path + AFXMLDictionarySerializer + sourceTree + <group> + + 950382A818063DDF003FBE11 + + children + + 950382A918063DDF003FBE11 + 950382AA18063DDF003FBE11 + 950382AD18063DDF003FBE11 + 950382AF18063DDF003FBE11 + + isa + PBXGroup + name + Supporting Files + sourceTree + <group> + + 950382A918063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + AFXMLDictionarySerializer-Info.plist + sourceTree + <group> + + 950382AA18063DDF003FBE11 + + children + + 950382AB18063DDF003FBE11 + + isa + PBXVariantGroup + name + InfoPlist.strings + sourceTree + <group> + + 950382AB18063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + text.plist.strings + name + en + path + en.lproj/InfoPlist.strings + sourceTree + <group> + + 950382AC18063DDF003FBE11 + + fileRef + 950382AA18063DDF003FBE11 + isa + PBXBuildFile + + 950382AD18063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + main.m + sourceTree + <group> + + 950382AE18063DDF003FBE11 + + fileRef + 950382AD18063DDF003FBE11 + isa + PBXBuildFile + + 950382AF18063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + AFXMLDictionarySerializer-Prefix.pch + sourceTree + <group> + + 950382B018063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + AppDelegate.h + sourceTree + <group> + + 950382B118063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + AppDelegate.m + sourceTree + <group> + + 950382B218063DDF003FBE11 + + fileRef + 950382B118063DDF003FBE11 + isa + PBXBuildFile + + 950382B518063DDF003FBE11 + + buildActionMask + 2147483647 + files + + 950382C718063DDF003FBE11 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 950382B618063DDF003FBE11 + + buildActionMask + 2147483647 + files + + 950382BB18063DDF003FBE11 + 950382BD18063DDF003FBE11 + 950382BC18063DDF003FBE11 + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 950382B718063DDF003FBE11 + + buildActionMask + 2147483647 + files + + 950382C518063DDF003FBE11 + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 950382B818063DDF003FBE11 + + buildConfigurationList + 950382CD18063DDF003FBE11 + buildPhases + + 950382B518063DDF003FBE11 + 950382B618063DDF003FBE11 + 950382B718063DDF003FBE11 + + buildRules + + dependencies + + 950382BF18063DDF003FBE11 + + isa + PBXNativeTarget + name + AFXMLDictionarySerializerTests + productName + AFXMLDictionarySerializerTests + productReference + 950382B918063DDF003FBE11 + productType + com.apple.product-type.bundle.unit-test + + 950382B918063DDF003FBE11 + + explicitFileType + wrapper.cfbundle + includeInIndex + 0 + isa + PBXFileReference + path + AFXMLDictionarySerializerTests.xctest + sourceTree + BUILT_PRODUCTS_DIR + + 950382BA18063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + XCTest.framework + path + Library/Frameworks/XCTest.framework + sourceTree + DEVELOPER_DIR + + 950382BB18063DDF003FBE11 + + fileRef + 950382BA18063DDF003FBE11 + isa + PBXBuildFile + + 950382BC18063DDF003FBE11 + + fileRef + 950382A118063DDF003FBE11 + isa + PBXBuildFile + + 950382BD18063DDF003FBE11 + + fileRef + 950382A518063DDF003FBE11 + isa + PBXBuildFile + + 950382BE18063DDF003FBE11 + + containerPortal + 9503829618063DDF003FBE11 + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + 9503829D18063DDF003FBE11 + remoteInfo + AFXMLDictionarySerializer + + 950382BF18063DDF003FBE11 + + isa + PBXTargetDependency + target + 9503829D18063DDF003FBE11 + targetProxy + 950382BE18063DDF003FBE11 + + 950382C018063DDF003FBE11 + + children + + 950382C618063DDF003FBE11 + 950382C118063DDF003FBE11 + + isa + PBXGroup + path + AFXMLDictionarySerializerTests + sourceTree + <group> + + 950382C118063DDF003FBE11 + + children + + 950382C218063DDF003FBE11 + 950382C318063DDF003FBE11 + + isa + PBXGroup + name + Supporting Files + sourceTree + <group> + + 950382C218063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + AFXMLDictionarySerializerTests-Info.plist + sourceTree + <group> + + 950382C318063DDF003FBE11 + + children + + 950382C418063DDF003FBE11 + + isa + PBXVariantGroup + name + InfoPlist.strings + sourceTree + <group> + + 950382C418063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + text.plist.strings + name + en + path + en.lproj/InfoPlist.strings + sourceTree + <group> + + 950382C518063DDF003FBE11 + + fileRef + 950382C318063DDF003FBE11 + isa + PBXBuildFile + + 950382C618063DDF003FBE11 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + AFXMLDictionarySerializerTests.m + sourceTree + <group> + + 950382C718063DDF003FBE11 + + fileRef + 950382C618063DDF003FBE11 + isa + PBXBuildFile + + 950382C818063DDF003FBE11 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + ARCHS + $(ARCHS_STANDARD_INCLUDING_64_BIT) + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES_ERROR + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 7.0 + ONLY_ACTIVE_ARCH + YES + SDKROOT + iphoneos + TARGETED_DEVICE_FAMILY + 1,2 + + isa + XCBuildConfiguration + name + Debug + + 950382C918063DDF003FBE11 + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + ARCHS + $(ARCHS_STANDARD_INCLUDING_64_BIT) + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES_ERROR + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES_ERROR + CLANG_WARN__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + YES + ENABLE_NS_ASSERTIONS + NO + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES_ERROR + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 7.0 + SDKROOT + iphoneos + TARGETED_DEVICE_FAMILY + 1,2 + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 950382CA18063DDF003FBE11 + + buildConfigurations + + 950382CB18063DDF003FBE11 + 950382CC18063DDF003FBE11 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 950382CB18063DDF003FBE11 + + baseConfigurationReference + 142914DB589D2C78BF981D71 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME + LaunchImage + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch + INFOPLIST_FILE + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Debug + + 950382CC18063DDF003FBE11 + + baseConfigurationReference + 3179EB114E092BC37F1A1363 + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME + LaunchImage + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch + INFOPLIST_FILE + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Release + + 950382CD18063DDF003FBE11 + + buildConfigurations + + 950382CE18063DDF003FBE11 + 950382CF18063DDF003FBE11 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 950382CE18063DDF003FBE11 + + buildSettings + + ARCHS + $(ARCHS_STANDARD_INCLUDING_64_BIT) + BUNDLE_LOADER + $(BUILT_PRODUCTS_DIR)/AFXMLDictionarySerializer.app/AFXMLDictionarySerializer + FRAMEWORK_SEARCH_PATHS + + $(SDKROOT)/Developer/Library/Frameworks + $(inherited) + $(DEVELOPER_FRAMEWORKS_DIR) + + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + INFOPLIST_FILE + AFXMLDictionarySerializerTests/AFXMLDictionarySerializerTests-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + TEST_HOST + $(BUNDLE_LOADER) + WRAPPER_EXTENSION + xctest + + isa + XCBuildConfiguration + name + Debug + + 950382CF18063DDF003FBE11 + + buildSettings + + ARCHS + $(ARCHS_STANDARD_INCLUDING_64_BIT) + BUNDLE_LOADER + $(BUILT_PRODUCTS_DIR)/AFXMLDictionarySerializer.app/AFXMLDictionarySerializer + FRAMEWORK_SEARCH_PATHS + + $(SDKROOT)/Developer/Library/Frameworks + $(inherited) + $(DEVELOPER_FRAMEWORKS_DIR) + + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + AFXMLDictionarySerializer/AFXMLDictionarySerializer-Prefix.pch + INFOPLIST_FILE + AFXMLDictionarySerializerTests/AFXMLDictionarySerializerTests-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + TEST_HOST + $(BUNDLE_LOADER) + WRAPPER_EXTENSION + xctest + + isa + XCBuildConfiguration + name + Release + + 950382D018063E5B003FBE11 + + children + + 950382D7180645ED003FBE11 + 950382D8180645ED003FBE11 + 950382D118063E7B003FBE11 + 950382D218063E7B003FBE11 + C81610F219DA6A8E0005553A + C81610F319DA6A8E0005553A + + isa + PBXGroup + name + Classes + sourceTree + <group> + + 950382D118063E7B003FBE11 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + AFXMLDictionaryResponseSerializer.h + path + Classes/AFXMLDictionaryResponseSerializer.h + sourceTree + <group> + + 950382D218063E7B003FBE11 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + AFXMLDictionaryResponseSerializer.m + path + Classes/AFXMLDictionaryResponseSerializer.m + sourceTree + <group> + + 950382D318063E7B003FBE11 + + fileRef + 950382D218063E7B003FBE11 + isa + PBXBuildFile + + 950382D7180645ED003FBE11 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + AFXMLDictionaryRequestSerializer.h + path + Classes/AFXMLDictionaryRequestSerializer.h + sourceTree + <group> + + 950382D8180645ED003FBE11 + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + AFXMLDictionaryRequestSerializer.m + path + Classes/AFXMLDictionaryRequestSerializer.m + sourceTree + <group> + + 950382D9180645ED003FBE11 + + fileRef + 950382D8180645ED003FBE11 + isa + PBXBuildFile + + B615345ED2CF4A2BAE0479C0 + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods.a + sourceTree + BUILT_PRODUCTS_DIR + + B9FD310CA49E4706AD5ACE05 + + buildActionMask + 2147483647 + files + + inputPaths + + isa + PBXShellScriptBuildPhase + name + Copy Pods Resources + outputPaths + + runOnlyForDeploymentPostprocessing + 0 + shellPath + /bin/sh + shellScript + "${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh" + + showEnvVarsInLog + 0 + + C81610F219DA6A8E0005553A + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + XMLDictionarySettings.h + path + Classes/XMLDictionarySettings.h + sourceTree + <group> + + C81610F319DA6A8E0005553A + + fileEncoding + 4 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + XMLDictionarySettings.m + path + Classes/XMLDictionarySettings.m + sourceTree + <group> + + C81610F419DA6A8E0005553A + + fileRef + C81610F319DA6A8E0005553A + isa + PBXBuildFile + + + rootObject + 9503829618063DDF003FBE11 + + diff --git a/AFXMLDictionarySerializer/AppDelegate.m b/AFXMLDictionarySerializer/AppDelegate.m index 9277f8b..62069a7 100644 --- a/AFXMLDictionarySerializer/AppDelegate.m +++ b/AFXMLDictionarySerializer/AppDelegate.m @@ -8,54 +8,55 @@ #import "AppDelegate.h" #import "AFXMLDictionaryResponseSerializer.h" +#import "XMLDictionarySettings.h" #import @implementation AppDelegate -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - NSURL *URL = [NSURL URLWithString:@"http://maps.googleapis.com/maps/api/directions/xml?origin=Toronto&destination=Montreal&sensor=false"]; - NSURLRequest *request = [NSURLRequest requestWithURL:URL]; - AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; - operation.responseSerializer = [AFXMLDictionaryResponseSerializer serializer]; - [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { - NSLog(@"%@", responseObject); - } failure:nil]; - [operation start]; - - self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; - // Override point for customization after application launch. - self.window.backgroundColor = [UIColor whiteColor]; - [self.window makeKeyAndVisible]; - - return YES; +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + NSURL *URL = [NSURL URLWithString:@"http://maps.googleapis.com/maps/api/directions/xml?origin=Toronto&destination=Montreal&sensor=false"]; + NSURLRequest *request = [NSURLRequest requestWithURL:URL]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + + AFXMLDictionaryResponseSerializer *dictionarySerializer = [AFXMLDictionaryResponseSerializer serializer]; + XMLDictionarySettings *settings = [XMLDictionarySettings new]; + settings.nodeNameMode = XMLDictionaryNodeNameModeAlways; // always add node __name + [dictionarySerializer configParser:settings]; + + operation.responseSerializer = dictionarySerializer; + [operation setCompletionBlockWithSuccess: ^(AFHTTPRequestOperation *operation, id responseObject) { + NSLog(@"%@", responseObject); + } failure:nil]; + [operation start]; + + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + + return YES; } -- (void)applicationWillResignActive:(UIApplication *)application -{ - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } -- (void)applicationWillEnterForeground:(UIApplication *)application -{ - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } -- (void)applicationDidBecomeActive:(UIApplication *)application -{ - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } -- (void)applicationWillTerminate:(UIApplication *)application -{ - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } @end diff --git a/Classes/AFXMLDictionaryResponseSerializer.h b/Classes/AFXMLDictionaryResponseSerializer.h index b2c2125..954289c 100644 --- a/Classes/AFXMLDictionaryResponseSerializer.h +++ b/Classes/AFXMLDictionaryResponseSerializer.h @@ -8,6 +8,10 @@ #import "AFURLResponseSerialization.h" +@class XMLDictionarySettings; + @interface AFXMLDictionaryResponseSerializer : AFHTTPResponseSerializer +- (void)configParser:(XMLDictionarySettings *)settingsObject; + @end diff --git a/Classes/AFXMLDictionaryResponseSerializer.m b/Classes/AFXMLDictionaryResponseSerializer.m index 4ca9275..fc93588 100644 --- a/Classes/AFXMLDictionaryResponseSerializer.m +++ b/Classes/AFXMLDictionaryResponseSerializer.m @@ -8,69 +8,76 @@ #import "AFXMLDictionaryResponseSerializer.h" #import +#import "XMLDictionarySettings.h" @implementation AFXMLDictionaryResponseSerializer + (instancetype)serializer { - return [[self alloc] init]; + return [[self alloc] init]; } - (instancetype)init { - self = [super init]; - if (!self) { - return nil; - } - - self.acceptableContentTypes = [NSSet setWithObjects:@"application/xml", @"text/xml", nil]; - - return self; + self = [super init]; + if (!self) { + return nil; + } + + self.acceptableContentTypes = [NSSet setWithObjects:@"application/xml", @"text/xml", nil]; + + return self; +} + +#pragma mark - Config parser + +- (void)configParser:(XMLDictionarySettings *)settingsObject { + [XMLDictionaryParser sharedInstance].collapseTextNodes = settingsObject.collapseTextNodes; + [XMLDictionaryParser sharedInstance].stripEmptyNodes = settingsObject.stripEmptyNodes; + [XMLDictionaryParser sharedInstance].trimWhiteSpace = settingsObject.trimWhiteSpace; + [XMLDictionaryParser sharedInstance].alwaysUseArrays = settingsObject.alwaysUseArrays; + [XMLDictionaryParser sharedInstance].preserveComments = settingsObject.preserveComments; + [XMLDictionaryParser sharedInstance].attributesMode = settingsObject.attributesMode; + [XMLDictionaryParser sharedInstance].nodeNameMode = settingsObject.nodeNameMode; } #pragma mark - AFURLRequestSerialization - (id)responseObjectForResponse:(NSURLResponse *)response data:(NSData *)data - error:(NSError *__autoreleasing *)error -{ - if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { - if ([(NSError *)(*error) code] == NSURLErrorCannotDecodeContentData) { - return nil; - } - } - - if ([data length] > 0) - { - return [NSDictionary dictionaryWithXMLData:data]; - } - else - { - return nil; - } - - return nil; + error:(NSError *__autoreleasing *)error { + if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) { + if ([(NSError *)(*error)code] == NSURLErrorCannotDecodeContentData) { + return nil; + } + } + + if ([data length] > 0) { + return [NSDictionary dictionaryWithXMLData:data]; + } + + return nil; } #pragma mark - NSCoding - (id)initWithCoder:(NSCoder *)aDecoder { - self = [super initWithCoder:aDecoder]; - if (!self) { - return nil; - } - - return self; + self = [super initWithCoder:aDecoder]; + if (!self) { + return nil; + } + + return self; } - (void)encodeWithCoder:(NSCoder *)aCoder { - [super encodeWithCoder:aCoder]; + [super encodeWithCoder:aCoder]; } #pragma mark - NSCopying - (id)copyWithZone:(NSZone *)zone { - AFXMLDictionaryResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; - - return serializer; + AFXMLDictionaryResponseSerializer *serializer = [[[self class] allocWithZone:zone] init]; + + return serializer; } @end diff --git a/Classes/XMLDictionarySettings.h b/Classes/XMLDictionarySettings.h new file mode 100644 index 0000000..7d5f23a --- /dev/null +++ b/Classes/XMLDictionarySettings.h @@ -0,0 +1,23 @@ +// +// XMLParserSettings.h +// AFXMLDictionarySerializer +// +// Created by Илья Седов on 30.09.14. +// Copyright (c) 2014 Ideais Mobile. All rights reserved. +// + +#import +#import + +@interface XMLDictionarySettings : NSObject + +@property (nonatomic, assign) BOOL collapseTextNodes; // defaults to YES +@property (nonatomic, assign) BOOL stripEmptyNodes; // defaults to YES +@property (nonatomic, assign) BOOL trimWhiteSpace; // defaults to YES +@property (nonatomic, assign) BOOL alwaysUseArrays; // defaults to NO +@property (nonatomic, assign) BOOL preserveComments; // defaults to NO + +@property (nonatomic, assign) XMLDictionaryAttributesMode attributesMode; +@property (nonatomic, assign) XMLDictionaryNodeNameMode nodeNameMode; + +@end diff --git a/Classes/XMLDictionarySettings.m b/Classes/XMLDictionarySettings.m new file mode 100644 index 0000000..51b70a4 --- /dev/null +++ b/Classes/XMLDictionarySettings.m @@ -0,0 +1,25 @@ +// +// XMLParserSettings.m +// AFXMLDictionarySerializer +// +// Created by Илья Седов on 30.09.14. +// Copyright (c) 2014 Ideais Mobile. All rights reserved. +// + +#import "XMLDictionarySettings.h" + +@implementation XMLDictionarySettings + +- (instancetype)init { + self = [super init]; + if (self) { + _collapseTextNodes = YES; + _stripEmptyNodes = YES; + _trimWhiteSpace = YES; + _alwaysUseArrays = NO; + _preserveComments = NO; + } + return self; +} + +@end diff --git a/Podfile b/Podfile index df91108..84523ef 100644 --- a/Podfile +++ b/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project # platform :ios, "6.0" -pod 'AFNetworking', '>= 2.0' +pod 'AFNetworking', '>=2.4' pod 'XMLDictionary' diff --git a/Podfile.lock b/Podfile.lock index e0a4fac..69db655 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,32 +1,33 @@ PODS: - - AFNetworking (2.0.0): + - AFNetworking (2.4.1): - AFNetworking/NSURLConnection - AFNetworking/NSURLSession - AFNetworking/Reachability - AFNetworking/Security - AFNetworking/Serialization - AFNetworking/UIKit - - AFNetworking/NSURLConnection (2.0.0): + - AFNetworking/NSURLConnection (2.4.1): - AFNetworking/Reachability - AFNetworking/Security - AFNetworking/Serialization - - AFNetworking/NSURLSession (2.0.0): + - AFNetworking/NSURLSession (2.4.1): - AFNetworking/Reachability - AFNetworking/Security - AFNetworking/Serialization - - AFNetworking/Reachability (2.0.0) - - AFNetworking/Security (2.0.0) - - AFNetworking/Serialization (2.0.0) - - AFNetworking/UIKit (2.0.0): + - AFNetworking/Reachability (2.4.1) + - AFNetworking/Security (2.4.1) + - AFNetworking/Serialization (2.4.1) + - AFNetworking/UIKit (2.4.1): - AFNetworking/NSURLConnection + - AFNetworking/NSURLSession - XMLDictionary (1.3) DEPENDENCIES: - - AFNetworking (>= 2.0) + - AFNetworking (>= 2.4) - XMLDictionary SPEC CHECKSUMS: - AFNetworking: 3fa983b1beaba69566a3374612511e2a6e3fe845 - XMLDictionary: 27390d3517062694ccb307a7750250e1b687571d + AFNetworking: 0aabc6fae66d6e5d039eeb21c315843c7aae51ab + XMLDictionary: 40bf0ff87c5420ed20af746c663acd711826a6d0 -COCOAPODS: 0.26.2 +COCOAPODS: 0.34.1