Authored by Hasseily

Issue #55: Added framework build

Versions/Current/Headers
\ No newline at end of file
... ...
Versions/Current/Resources
\ No newline at end of file
... ...
<?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>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>MapView</string>
<key>CFBundleIdentifier</key>
<string>com.catchme.MapView</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
... ...
A
\ No newline at end of file
... ...
... ... @@ -6,6 +6,20 @@
objectVersion = 45;
objects = {
/* Begin PBXAggregateTarget section */
386676D40F6B73AC00C56B17 /* MapView-framework */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 386676DE0F6B73D000C56B17 /* Build configuration list for PBXAggregateTarget "MapView-framework" */;
buildPhases = (
386676E00F6B73DA00C56B17 /* ShellScript */,
);
dependencies = (
);
name = "MapView-framework";
productName = "MapView-framework";
};
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
090FE3140ECD71A500035FBC /* RMTilesUpdateDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 090FE3130ECD71A500035FBC /* RMTilesUpdateDelegate.h */; };
126693040EB76C0B00E002D5 /* RMConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 126692A00EB75C0A00E002D5 /* RMConfiguration.m */; };
... ... @@ -18,6 +32,7 @@
23A0ABAA0EB923AF003A4521 /* RMLatLong.h in Headers */ = {isa = PBXBuildFile; fileRef = 23A0ABA90EB923AF003A4521 /* RMLatLong.h */; };
2B5682720F68E36000E8DF40 /* RMOpenAerialMapSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 2B5682700F68E36000E8DF40 /* RMOpenAerialMapSource.h */; };
2B5682730F68E36000E8DF40 /* RMOpenAerialMapSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B5682710F68E36000E8DF40 /* RMOpenAerialMapSource.m */; };
3849889C0F6F758100496293 /* libProj4.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 38D818500F6F67B90034598B /* libProj4.a */; };
B8474B9A0EB40094006A0BC1 /* FMDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = B8474B8D0EB40094006A0BC1 /* FMDatabase.h */; };
B8474B9B0EB40094006A0BC1 /* FMDatabase.m in Sources */ = {isa = PBXBuildFile; fileRef = B8474B8E0EB40094006A0BC1 /* FMDatabase.m */; };
B8474B9C0EB40094006A0BC1 /* FMDatabaseAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = B8474B8F0EB40094006A0BC1 /* FMDatabaseAdditions.h */; };
... ... @@ -67,7 +82,6 @@
B8C974520E8A19B2007D16AD /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B83E65630E80E81C001663B6 /* CoreLocation.framework */; };
B8C974530E8A19B2007D16AD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
B8C974540E8A19B2007D16AD /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B83E65680E80E830001663B6 /* QuartzCore.framework */; };
B8C974550E8A19B2007D16AD /* libProj4.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B83E654F0E80E7A8001663B6 /* libProj4.a */; };
B8C9745C0E8A19E5007D16AD /* RMTileImageSet.h in Headers */ = {isa = PBXBuildFile; fileRef = B83E64E00E80E73F001663B6 /* RMTileImageSet.h */; };
B8C9745D0E8A19E6007D16AD /* RMTileImageSet.m in Sources */ = {isa = PBXBuildFile; fileRef = B83E64E10E80E73F001663B6 /* RMTileImageSet.m */; };
B8C9745E0E8A19E6007D16AD /* RMTileLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = B83E64C60E80E73F001663B6 /* RMTileLoader.h */; };
... ... @@ -98,7 +112,7 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
B83E654E0E80E7A8001663B6 /* PBXContainerItemProxy */ = {
38D8184F0F6F67B90034598B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = B83E654A0E80E7A8001663B6 /* Proj4.xcodeproj */;
proxyType = 2;
... ... @@ -134,6 +148,8 @@
2B5682700F68E36000E8DF40 /* RMOpenAerialMapSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMOpenAerialMapSource.h; sourceTree = "<group>"; };
2B5682710F68E36000E8DF40 /* RMOpenAerialMapSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RMOpenAerialMapSource.m; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* MapView_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MapView_Prefix.pch; sourceTree = "<group>"; };
3866784C0F6B9B9200C56B17 /* MapView.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapView.framework; path = build/MapView.framework; sourceTree = "<group>"; };
38D9428D0F6C6D0D00454287 /* Canonical.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Canonical.framework; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
966504690F6869810036562A /* loading.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = loading.png; sourceTree = "<group>"; };
B83E64B60E80E73F001663B6 /* RMPixel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMPixel.h; sourceTree = "<group>"; };
... ... @@ -231,8 +247,8 @@
B8C974520E8A19B2007D16AD /* CoreLocation.framework in Frameworks */,
B8C974530E8A19B2007D16AD /* UIKit.framework in Frameworks */,
B8C974540E8A19B2007D16AD /* QuartzCore.framework in Frameworks */,
B8C974550E8A19B2007D16AD /* libProj4.a in Frameworks */,
B8474BC10EB4019A006A0BC1 /* libsqlite3.dylib in Frameworks */,
3849889C0F6F758100496293 /* libProj4.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
... ... @@ -252,6 +268,7 @@
isa = PBXGroup;
children = (
B8C974590E8A19B2007D16AD /* libMapView.a */,
3866784C0F6B9B9200C56B17 /* MapView.framework */,
);
name = Products;
sourceTree = "<group>";
... ... @@ -283,6 +300,14 @@
name = Frameworks;
sourceTree = "<group>";
};
38D8184C0F6F67B90034598B /* Products */ = {
isa = PBXGroup;
children = (
38D818500F6F67B90034598B /* libProj4.a */,
);
name = Products;
sourceTree = "<group>";
};
B83E64B80E80E73F001663B6 /* Renderers */ = {
isa = PBXGroup;
children = (
... ... @@ -377,17 +402,10 @@
name = "Tile Source";
sourceTree = "<group>";
};
B83E654B0E80E7A8001663B6 /* Products */ = {
isa = PBXGroup;
children = (
B83E654F0E80E7A8001663B6 /* libProj4.a */,
);
name = Products;
sourceTree = "<group>";
};
B83E67570E80F3FB001663B6 /* Resources */ = {
isa = PBXGroup;
children = (
38D9428D0F6C6D0D00454287 /* Canonical.framework */,
32CA4F630368D1EE00C91783 /* MapView_Prefix.pch */,
8D1107310486CEB800E47090 /* Info.plist */,
);
... ... @@ -588,27 +606,44 @@
projectDirPath = "";
projectReferences = (
{
ProductGroup = B83E654B0E80E7A8001663B6 /* Products */;
ProductGroup = 38D8184C0F6F67B90034598B /* Products */;
ProjectRef = B83E654A0E80E7A8001663B6 /* Proj4.xcodeproj */;
},
);
projectRoot = "";
targets = (
B8C974130E8A19B2007D16AD /* MapView */,
386676D40F6B73AC00C56B17 /* MapView-framework */,
);
};
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
B83E654F0E80E7A8001663B6 /* libProj4.a */ = {
38D818500F6F67B90034598B /* libProj4.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libProj4.a;
remoteRef = B83E654E0E80E7A8001663B6 /* PBXContainerItemProxy */;
remoteRef = 38D8184F0F6F67B90034598B /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXShellScriptBuildPhase section */
386676E00F6B73DA00C56B17 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Script that builds a static framework with debug and release versions\n# The framework works in both the simulator and devices\n# This script does not consider the selected active build. It builds everything!\n#\n# You can just drop the resulting framework in your project and it'll work whatever your build type\n\necho \"Starting build of ${PRODUCT_NAME} framework\"\n\nINFOPLIST_FILE=${SRCROOT}/source/Info.plist\n\nif [ -d \"build/${PRODUCT_NAME}.framework\" ]\nthen\n rm -rf \"build/${PRODUCT_NAME}.framework/*\"\nelse\n cp -R Canonical.framework \"build/${PRODUCT_NAME}.framework\"\nfi\n\necho \"Building iphonesimulator2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphoneos2.1\necho \"Building iphonesimulator2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphoneos2.1\n\necho \"Creating fat library for Debug\"\nlipo \"build/Debug-iphoneos/lib${PRODUCT_NAME}.a\" \"build/Debug-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"build/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}_debug\" -create\n\necho \"Creating fat library for Release\"\nlipo \"build/Release-iphoneos/lib${PRODUCT_NAME}.a\" \"build/Release-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"build/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}\" -create\n\necho \"Finishing packaging framework\"\nln -s \"Versions/A/${PRODUCT_NAME}\" \"build/${PRODUCT_NAME}.framework/\"\nln -s \"Versions/A/${PRODUCT_NAME}_debug\" \"build/${PRODUCT_NAME}.framework/\"\ncp Map/*.h \"build/${PRODUCT_NAME}.framework/Versions/A/Headers/\"\ncp -R Map/Resources/* \"build/${PRODUCT_NAME}.framework/Versions/A/Resources/\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${VERSION}\" \"build/${PRODUCT_NAME}.framework/Versions/A/Resources/Info.plist\"\n\necho \"Completed build of ${PRODUCT_NAME} framework\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
B8C974340E8A19B2007D16AD /* Sources */ = {
isa = PBXSourcesBuildPhase;
... ... @@ -666,6 +701,39 @@
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
386676D50F6B73AD00C56B17 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "";
"ARCHS[arch=*]" = (
i386,
armv6,
);
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = MapView;
};
name = Debug;
};
386676D60F6B73AD00C56B17 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "";
"ARCHS[arch=*]" = (
i386,
armv6,
);
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_FIX_AND_CONTINUE = NO;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = MapView;
ZERO_LINK = NO;
};
name = Release;
};
B8C974570E8A19B2007D16AD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
... ... @@ -677,6 +745,8 @@
GCC_PREFIX_HEADER = MapView_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
HEADER_SEARCH_PATHS = ../Proj4;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-ObjC";
PREBINDING = NO;
PRODUCT_NAME = MapView;
};
... ... @@ -693,6 +763,7 @@
GCC_PREFIX_HEADER = MapView_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "NS_BLOCK_ASSERTIONS=1";
HEADER_SEARCH_PATHS = ../Proj4;
OTHER_LDFLAGS = "-ObjC";
PREBINDING = NO;
PRODUCT_NAME = MapView;
ZERO_LINK = NO;
... ... @@ -734,6 +805,15 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
386676DE0F6B73D000C56B17 /* Build configuration list for PBXAggregateTarget "MapView-framework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
386676D50F6B73AD00C56B17 /* Debug */,
386676D60F6B73AD00C56B17 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Debug;
};
B8C974560E8A19B2007D16AD /* Build configuration list for PBXNativeTarget "MapView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
... ...
... ... @@ -791,7 +791,7 @@
GCC_PREFIX_HEADER = Proj4_Prefix.pch;
GCC_WARN_UNUSED_VARIABLE = NO;
INSTALL_PATH = /usr/local/lib;
ONLY_ACTIVE_ARCH = YES;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = Proj4;
SDKROOT = iphonesimulator2.1;
};
... ...