Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified the framework build to use a tarred framework and bundle aut…

…o-versioning
  • Loading branch information...
commit 8500459605f69ae92348865726bfdd0cb20e576a 1 parent c965226
Hasseily authored
View
BIN  MapView/Canonical.framework.tar
Binary file not shown
View
1  MapView/Canonical.framework/Headers
View
1  MapView/Canonical.framework/Resources
View
20 MapView/Canonical.framework/Versions/A/Resources/Info.plist
@@ -1,20 +0,0 @@
-<?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>
View
1  MapView/Canonical.framework/Versions/Current
View
6 MapView/MapView.xcodeproj/project.pbxproj
@@ -152,7 +152,7 @@
2BF0E4570F7312B10095A926 /* README-library-build.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = "README-library-build.rtf"; 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>"; };
+ 38DAD5490F739BAD00D1DF51 /* Canonical.framework.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = Canonical.framework.tar; 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>"; };
96FE8E340F72D01B00A11CF0 /* RMYahooMapSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMYahooMapSource.h; sourceTree = "<group>"; };
@@ -422,7 +422,7 @@
B83E67570E80F3FB001663B6 /* Resources */ = {
isa = PBXGroup;
children = (
- 38D9428D0F6C6D0D00454287 /* Canonical.framework */,
+ 38DAD5490F739BAD00D1DF51 /* Canonical.framework.tar */,
32CA4F630368D1EE00C91783 /* MapView_Prefix.pch */,
8D1107310486CEB800E47090 /* Info.plist */,
);
@@ -657,7 +657,7 @@
);
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 \"${SYMROOT}/${PRODUCT_NAME}.framework\" ]\nthen\n rm -rf \"${SYMROOT}/${PRODUCT_NAME}.framework/*\"\nelse\n cp -R Canonical.framework \"${SYMROOT}/${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 \"${SYMROOT}/Debug-iphoneos/lib${PRODUCT_NAME}.a\" \"${SYMROOT}/Debug-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}_debug\" -create\n\necho \"Creating fat library for Release\"\nlipo \"${SYMROOT}/Release-iphoneos/lib${PRODUCT_NAME}.a\" \"${SYMROOT}/Release-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}\" -create\n\necho \"Finishing packaging framework\"\nln -s \"Versions/A/${PRODUCT_NAME}\" \"${SYMROOT}/${PRODUCT_NAME}.framework/\"\nln -s \"Versions/A/${PRODUCT_NAME}_debug\" \"${SYMROOT}/${PRODUCT_NAME}.framework/\"\ncp Map/*.h \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Headers/\"\ncp -R Map/Resources/* \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Resources/\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${VERSION}\" \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Resources/Info.plist\"\n\necho \"Completed build of ${PRODUCT_NAME} framework\"\n";
+ 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\n# set version to svn version if it's not set\nif [ -z \"$VERSION\" ]\nthen\n VERSION=`svnversion -n \"${SRCROOT}\"`\nfi\nif [ -z \"$VERSION\" ]\nthen\n echo \"Can't find svn version\"\nelse\n export VERSION=\"r${VERSION}\"\nfi\n\necho \"Build version is: $VERSION\"\n\nif [ -d \"${SYMROOT}/${PRODUCT_NAME}.framework\" ]\nthen\n rm -rf \"${SYMROOT}/${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 skeleton framework\"\ntar xf \"${SRCROOT}/Canonical.framework.tar\" -C \"${SYMROOT}/\"\n\necho \"Creating fat library for Debug\"\nlipo \"${SYMROOT}/Debug-iphoneos/lib${PRODUCT_NAME}.a\" \"${SYMROOT}/Debug-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}_debug\" -create\n\necho \"Creating fat library for Release\"\nlipo \"${SYMROOT}/Release-iphoneos/lib${PRODUCT_NAME}.a\" \"${SYMROOT}/Release-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}\" -create\n\necho \"Finishing packaging framework\"\nln -s \"Versions/A/${PRODUCT_NAME}\" \"${SYMROOT}/${PRODUCT_NAME}.framework/\"\nln -s \"Versions/A/${PRODUCT_NAME}_debug\" \"${SYMROOT}/${PRODUCT_NAME}.framework/\"\ncp Map/*.h \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Headers/\"\ncp -R Map/Resources/* \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Resources/\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${VERSION}\" \"${SYMROOT}/${PRODUCT_NAME}.framework/Versions/A/Resources/Info.plist\"\n\necho \"Completed build of ${PRODUCT_NAME} framework\"\n";
};
/* End PBXShellScriptBuildPhase section */
Please sign in to comment.
Something went wrong with that request. Please try again.