Merge branch 'Icenium-master'
diff --git a/lib/pbxFile.js b/lib/pbxFile.js
index 5baa823..887f6e6 100644
--- a/lib/pbxFile.js
+++ b/lib/pbxFile.js
@@ -5,7 +5,7 @@
     BUNDLE_EXTENSION = /[.]bundle$/, BUNDLE = '"wrapper.plug-in"',
     XIB_EXTENSION = /[.]xib$/, XIB_FILE = 'file.xib',
     DYLIB_EXTENSION = /[.]dylib$/, DYLIB = '"compiled.mach-o.dylib"',
-    FRAMEWORK_EXTENSION = /[.]framework/, FRAMEWORK = 'wrapper.framework',
+    FRAMEWORK_EXTENSION = /[.]framework$/, FRAMEWORK = 'wrapper.framework',
     ARCHIVE_EXTENSION = /[.]a$/, ARCHIVE = 'archive.ar',
     DEFAULT_SOURCE_TREE = '"<group>"',
     DEFAULT_FILE_ENCODING = 4;
diff --git a/test/pbxFile.js b/test/pbxFile.js
index fbfe7da..0e3c4ee 100644
--- a/test/pbxFile.js
+++ b/test/pbxFile.js
@@ -43,6 +43,13 @@
         test.done();
     },
 
+    'should detect that a .framework/.a path means archive.ar': function (test) {
+        var sourceFile = new pbxFile('MessageUI.framework/libGoogleAnalytics.a');
+
+        test.equal('archive.ar', sourceFile.lastType);
+        test.done();
+    },
+    
     'should detect that a .a path means archive.ar': function (test) {
         var sourceFile = new pbxFile('libGoogleAnalytics.a');