From f832acb2b6d76cd16b384d327d55137f69e2a625 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 5 Nov 2013 11:21:31 +0100 Subject: [PATCH] Renamed and warnings fixed. --- MP42/MP42AACImporter.mm | 10 +-- ...2-Info.plist => MP42Foundation-Info.plist} | 0 ...2-Prefix.pch => MP42Foundation-Prefix.pch} | 0 MP42/MP42HtmlParser.m | 10 ++- MP42/MP42MkvImporter.m | 8 +- MP42/MP42VobSubImporter.m | 8 +- .../project.pbxproj | 84 +++++++++---------- .../contents.xcworkspacedata | 2 +- .../xcschemes/MP42.xcscheme | 8 +- .../xcschemes/xcschememanagement.plist | 0 ...o.plist => MP42FoundationTests-Info.plist} | 0 11 files changed, 68 insertions(+), 62 deletions(-) rename MP42/{MP42-Info.plist => MP42Foundation-Info.plist} (100%) rename MP42/{MP42-Prefix.pch => MP42Foundation-Prefix.pch} (100%) rename {MP42.xcodeproj => MP42Foundation.xcodeproj}/project.pbxproj (95%) rename {MP42.xcodeproj => MP42Foundation.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (68%) rename {MP42.xcodeproj => MP42Foundation.xcodeproj}/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme (89%) rename {MP42.xcodeproj => MP42Foundation.xcodeproj}/xcuserdata/damians.xcuserdatad/xcschemes/xcschememanagement.plist (100%) rename MP42Tests/{MP42Tests-Info.plist => MP42FoundationTests-Info.plist} (100%) diff --git a/MP42/MP42AACImporter.mm b/MP42/MP42AACImporter.mm index 0b3bb47..0452b26 100644 --- a/MP42/MP42AACImporter.mm +++ b/MP42/MP42AACImporter.mm @@ -751,21 +751,21 @@ static bool GetFirstHeader(FILE* inFile) } channelConfig = MP4AV_AdtsGetChannels(firstHeader); - u_int8_t audioType = MP4_INVALID_AUDIO_TYPE; + //u_int8_t audioType = MP4_INVALID_AUDIO_TYPE; switch (mpegVersion) { case 0: - audioType = MP4_MPEG4_AUDIO_TYPE; + //audioType = MP4_MPEG4_AUDIO_TYPE; break; case 1: switch (profile) { case 0: - audioType = MP4_MPEG2_AAC_MAIN_AUDIO_TYPE; + //audioType = MP4_MPEG2_AAC_MAIN_AUDIO_TYPE; break; case 1: - audioType = MP4_MPEG2_AAC_LC_AUDIO_TYPE; + //audioType = MP4_MPEG2_AAC_LC_AUDIO_TYPE; break; case 2: - audioType = MP4_MPEG2_AAC_SSR_AUDIO_TYPE; + //audioType = MP4_MPEG2_AAC_SSR_AUDIO_TYPE; break; case 3: //*outError = MP42Error(@"The audio could not be opened.", @"Data in file doesn't appear to be valid audio.", 100); diff --git a/MP42/MP42-Info.plist b/MP42/MP42Foundation-Info.plist similarity index 100% rename from MP42/MP42-Info.plist rename to MP42/MP42Foundation-Info.plist diff --git a/MP42/MP42-Prefix.pch b/MP42/MP42Foundation-Prefix.pch similarity index 100% rename from MP42/MP42-Prefix.pch rename to MP42/MP42Foundation-Prefix.pch diff --git a/MP42/MP42HtmlParser.m b/MP42/MP42HtmlParser.m index 365832d..ee34f84 100644 --- a/MP42/MP42HtmlParser.m +++ b/MP42/MP42HtmlParser.m @@ -58,7 +58,7 @@ int compare_color(rgba_color c1, rgba_color c2) { newObject.location = _location; newObject.length = _length; newObject.color = _color; - + return newObject; } @@ -116,11 +116,17 @@ int compare_color(rgba_color c1, rgba_color c2) { NSRange contentRange, contentInternalRange; contentRange.location = openRange.location; contentRange.length = closeRange.location + closeRange.length - openRange.location; - + contentInternalRange = contentRange; contentInternalRange.location += 1; contentInternalRange.length -= 2; + // If the internal content range location is equal to the text length + // it means there is no content at all + if (contentInternalRange.location == [_text length]) { + return NSNotFound; + } + content = [_text substringWithRange:contentInternalRange]; NSInteger tagType; diff --git a/MP42/MP42MkvImporter.m b/MP42/MP42MkvImporter.m index 4ac67c6..62cba9f 100644 --- a/MP42/MP42MkvImporter.m +++ b/MP42/MP42MkvImporter.m @@ -561,10 +561,10 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t if (palette != NULL) { sscanf(palette, "palette: %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx", - &colorPalette[ 0], &colorPalette[ 1], &colorPalette[ 2], &colorPalette[ 3], - &colorPalette[ 4], &colorPalette[ 5], &colorPalette[ 6], &colorPalette[ 7], - &colorPalette[ 8], &colorPalette[ 9], &colorPalette[10], &colorPalette[11], - &colorPalette[12], &colorPalette[13], &colorPalette[14], &colorPalette[15]); + (unsigned long*)&colorPalette[ 0], (unsigned long*)&colorPalette[ 1], (unsigned long*)&colorPalette[ 2], (unsigned long*)&colorPalette[ 3], + (unsigned long*)&colorPalette[ 4], (unsigned long*)&colorPalette[ 5], (unsigned long*)&colorPalette[ 6], (unsigned long*)&colorPalette[ 7], + (unsigned long*)&colorPalette[ 8], (unsigned long*)&colorPalette[ 9], (unsigned long*)&colorPalette[10], (unsigned long*)&colorPalette[11], + (unsigned long*)&colorPalette[12], (unsigned long*)&colorPalette[13], (unsigned long*)&colorPalette[14], (unsigned long*)&colorPalette[15]); } return [NSData dataWithBytes:colorPalette length:sizeof(UInt32)*16]; } diff --git a/MP42/MP42VobSubImporter.m b/MP42/MP42VobSubImporter.m index 9aef180..06aa7cc 100644 --- a/MP42/MP42VobSubImporter.m +++ b/MP42/MP42VobSubImporter.m @@ -273,10 +273,10 @@ static NSArray* LoadVobSubSubtitles(NSURL *theDirectory, NSString *filename) if (palette != NULL) { sscanf(palette, "palette: %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx", - &colorPalette[ 0], &colorPalette[ 1], &colorPalette[ 2], &colorPalette[ 3], - &colorPalette[ 4], &colorPalette[ 5], &colorPalette[ 6], &colorPalette[ 7], - &colorPalette[ 8], &colorPalette[ 9], &colorPalette[10], &colorPalette[11], - &colorPalette[12], &colorPalette[13], &colorPalette[14], &colorPalette[15]); + (unsigned long*)&colorPalette[ 0], (unsigned long*)&colorPalette[ 1], (unsigned long*)&colorPalette[ 2], (unsigned long*)&colorPalette[ 3], + (unsigned long*)&colorPalette[ 4], (unsigned long*)&colorPalette[ 5], (unsigned long*)&colorPalette[ 6], (unsigned long*)&colorPalette[ 7], + (unsigned long*)&colorPalette[ 8], (unsigned long*)&colorPalette[ 9], (unsigned long*)&colorPalette[10], (unsigned long*)&colorPalette[11], + (unsigned long*)&colorPalette[12], (unsigned long*)&colorPalette[13], (unsigned long*)&colorPalette[14], (unsigned long*)&colorPalette[15]); } magicCookie = [NSData dataWithBytes:colorPalette length:sizeof(UInt32)*16]; } diff --git a/MP42.xcodeproj/project.pbxproj b/MP42Foundation.xcodeproj/project.pbxproj similarity index 95% rename from MP42.xcodeproj/project.pbxproj rename to MP42Foundation.xcodeproj/project.pbxproj index 8adc6db..c29cba4 100644 --- a/MP42.xcodeproj/project.pbxproj +++ b/MP42Foundation.xcodeproj/project.pbxproj @@ -15,7 +15,7 @@ A9B9C1FB182391DF00416A4E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A9B9C1F9182391DF00416A4E /* InfoPlist.strings */; }; A9B9C206182391DF00416A4E /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C205182391DF00416A4E /* XCTest.framework */; }; A9B9C207182391DF00416A4E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C1F0182391DF00416A4E /* Cocoa.framework */; }; - A9B9C20A182391DF00416A4E /* MP42Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C1ED182391DF00416A4E /* MP42Foundation.framework */; }; + A9B9C20A182391DF00416A4E /* MP42FoundationFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C1ED182391DF00416A4E /* MP42FoundationFoundation.framework */; }; A9B9C210182391DF00416A4E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A9B9C20E182391DF00416A4E /* InfoPlist.strings */; }; A9B9C212182391DF00416A4E /* MP42Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C211182391DF00416A4E /* MP42Tests.m */; }; A9B9C2661823923200416A4E /* MP42AACImporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C21B1823923100416A4E /* MP42AACImporter.h */; }; @@ -85,7 +85,7 @@ A9B9C2A61823923200416A4E /* downmix.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C25C1823923200416A4E /* downmix.h */; }; A9B9C2A71823923200416A4E /* MatroskaFile.c in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C25D1823923200416A4E /* MatroskaFile.c */; }; A9B9C2A81823923200416A4E /* MatroskaFile.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C25E1823923200416A4E /* MatroskaFile.h */; }; - A9B9C2A91823923200416A4E /* MatroskaParser.c in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C25F1823923200416A4E /* MatroskaParser.c */; }; + A9B9C2A91823923200416A4E /* MatroskaParser.c in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C25F1823923200416A4E /* MatroskaParser.c */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-checker"; }; }; A9B9C2AA1823923200416A4E /* MatroskaParser.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2601823923200416A4E /* MatroskaParser.h */; }; A9B9C2AB1823923200416A4E /* mbs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2611823923200416A4E /* mbs.cpp */; }; A9B9C2AC1823923200416A4E /* mbs.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2621823923200416A4E /* mbs.h */; }; @@ -97,11 +97,11 @@ A9B9C2C51823957800416A4E /* MP42Languages.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2C31823957800416A4E /* MP42Languages.m */; }; A9B9C2C81823962600416A4E /* UniversalDetector.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2C71823962600416A4E /* UniversalDetector.h */; }; A9B9C2CB1823968400416A4E /* RegexKitLite.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2C91823968400416A4E /* RegexKitLite.h */; }; - A9B9C2CC1823968400416A4E /* RegexKitLite.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2CA1823968400416A4E /* RegexKitLite.m */; }; + A9B9C2CC1823968400416A4E /* RegexKitLite.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2CA1823968400416A4E /* RegexKitLite.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-checker"; }; }; A9B9C2CF182396A100416A4E /* MP42Ratings.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2CD182396A100416A4E /* MP42Ratings.h */; }; A9B9C2D0182396A100416A4E /* MP42Ratings.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2CE182396A100416A4E /* MP42Ratings.m */; }; A9B9C2D3182396C400416A4E /* JSONKit.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2D1182396C400416A4E /* JSONKit.h */; }; - A9B9C2D4182396C400416A4E /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2D2182396C400416A4E /* JSONKit.m */; }; + A9B9C2D4182396C400416A4E /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2D2182396C400416A4E /* JSONKit.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-checker"; }; }; A9B9C2D6182396FB00416A4E /* baseapi.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2D5182396FB00416A4E /* baseapi.h */; }; A9B9C2D81823970E00416A4E /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C2D71823970E00416A4E /* AVFoundation.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; A9B9C2DA1823971F00416A4E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B9C2D91823971F00416A4E /* AudioToolbox.framework */; }; @@ -164,17 +164,17 @@ A989F0FF1823AB2E0070AD8C /* MP42Track_Muxer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42Track_Muxer.h; sourceTree = ""; }; A989F10D1823B3B40070AD8C /* MP42TextSample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42TextSample.h; sourceTree = ""; }; A989F10E1823B3B40070AD8C /* MP42TextSample.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MP42TextSample.m; sourceTree = ""; }; - A9B9C1ED182391DF00416A4E /* MP42Foundation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MP42Foundation.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + A9B9C1ED182391DF00416A4E /* MP42FoundationFoundation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MP42FoundationFoundation.framework; sourceTree = BUILT_PRODUCTS_DIR; }; A9B9C1F0182391DF00416A4E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; A9B9C1F3182391DF00416A4E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; A9B9C1F4182391DF00416A4E /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; A9B9C1F5182391DF00416A4E /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - A9B9C1F8182391DF00416A4E /* MP42-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MP42-Info.plist"; sourceTree = ""; }; + A9B9C1F8182391DF00416A4E /* MP42Foundation-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MP42Foundation-Info.plist"; sourceTree = ""; }; A9B9C1FA182391DF00416A4E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - A9B9C1FC182391DF00416A4E /* MP42-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MP42-Prefix.pch"; sourceTree = ""; }; - A9B9C204182391DF00416A4E /* MP42FoundationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MP42FoundationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + A9B9C1FC182391DF00416A4E /* MP42Foundation-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MP42Foundation-Prefix.pch"; sourceTree = ""; }; + A9B9C204182391DF00416A4E /* MP42FoundationFoundationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MP42FoundationFoundationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; A9B9C205182391DF00416A4E /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - A9B9C20D182391DF00416A4E /* MP42Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MP42Tests-Info.plist"; sourceTree = ""; }; + A9B9C20D182391DF00416A4E /* MP42FoundationTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MP42FoundationTests-Info.plist"; sourceTree = ""; }; A9B9C20F182391DF00416A4E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; A9B9C211182391DF00416A4E /* MP42Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MP42Tests.m; sourceTree = ""; }; A9B9C21B1823923100416A4E /* MP42AACImporter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MP42AACImporter.h; sourceTree = ""; }; @@ -311,7 +311,7 @@ buildActionMask = 2147483647; files = ( A9B9C207182391DF00416A4E /* Cocoa.framework in Frameworks */, - A9B9C20A182391DF00416A4E /* MP42Foundation.framework in Frameworks */, + A9B9C20A182391DF00416A4E /* MP42FoundationFoundation.framework in Frameworks */, A9B9C206182391DF00416A4E /* XCTest.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -332,8 +332,8 @@ A9B9C1EE182391DF00416A4E /* Products */ = { isa = PBXGroup; children = ( - A9B9C1ED182391DF00416A4E /* MP42Foundation.framework */, - A9B9C204182391DF00416A4E /* MP42FoundationTests.xctest */, + A9B9C1ED182391DF00416A4E /* MP42FoundationFoundation.framework */, + A9B9C204182391DF00416A4E /* MP42FoundationFoundationTests.xctest */, ); name = Products; sourceTree = ""; @@ -407,9 +407,9 @@ isa = PBXGroup; children = ( A947BA9A1824F0B3004C734B /* Ratings.json */, - A9B9C1F8182391DF00416A4E /* MP42-Info.plist */, + A9B9C1F8182391DF00416A4E /* MP42Foundation-Info.plist */, A9B9C1F9182391DF00416A4E /* InfoPlist.strings */, - A9B9C1FC182391DF00416A4E /* MP42-Prefix.pch */, + A9B9C1FC182391DF00416A4E /* MP42Foundation-Prefix.pch */, ); name = "Supporting Files"; sourceTree = ""; @@ -426,7 +426,7 @@ A9B9C20C182391DF00416A4E /* Supporting Files */ = { isa = PBXGroup; children = ( - A9B9C20D182391DF00416A4E /* MP42Tests-Info.plist */, + A9B9C20D182391DF00416A4E /* MP42FoundationTests-Info.plist */, A9B9C20E182391DF00416A4E /* InfoPlist.strings */, ); name = "Supporting Files"; @@ -609,9 +609,9 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - A9B9C1EC182391DF00416A4E /* MP42Foundation */ = { + A9B9C1EC182391DF00416A4E /* MP42FoundationFoundation */ = { isa = PBXNativeTarget; - buildConfigurationList = A9B9C215182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42Foundation" */; + buildConfigurationList = A9B9C215182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationFoundation" */; buildPhases = ( A9B9C1E8182391DF00416A4E /* Sources */, A9B9C1E9182391DF00416A4E /* Frameworks */, @@ -623,14 +623,14 @@ dependencies = ( A989F10B1823AEA90070AD8C /* PBXTargetDependency */, ); - name = MP42Foundation; + name = MP42FoundationFoundation; productName = MP42; - productReference = A9B9C1ED182391DF00416A4E /* MP42Foundation.framework */; + productReference = A9B9C1ED182391DF00416A4E /* MP42FoundationFoundation.framework */; productType = "com.apple.product-type.framework"; }; - A9B9C203182391DF00416A4E /* MP42FoundationTests */ = { + A9B9C203182391DF00416A4E /* MP42FoundationFoundationTests */ = { isa = PBXNativeTarget; - buildConfigurationList = A9B9C218182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationTests" */; + buildConfigurationList = A9B9C218182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationFoundationTests" */; buildPhases = ( A9B9C200182391DF00416A4E /* Sources */, A9B9C201182391DF00416A4E /* Frameworks */, @@ -641,9 +641,9 @@ dependencies = ( A9B9C209182391DF00416A4E /* PBXTargetDependency */, ); - name = MP42FoundationTests; + name = MP42FoundationFoundationTests; productName = MP42Tests; - productReference = A9B9C204182391DF00416A4E /* MP42FoundationTests.xctest */; + productReference = A9B9C204182391DF00416A4E /* MP42FoundationFoundationTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ @@ -660,7 +660,7 @@ }; }; }; - buildConfigurationList = A9B9C1E7182391DF00416A4E /* Build configuration list for PBXProject "MP42" */; + buildConfigurationList = A9B9C1E7182391DF00416A4E /* Build configuration list for PBXProject "MP42Foundation" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -680,8 +680,8 @@ ); projectRoot = ""; targets = ( - A9B9C1EC182391DF00416A4E /* MP42Foundation */, - A9B9C203182391DF00416A4E /* MP42FoundationTests */, + A9B9C1EC182391DF00416A4E /* MP42FoundationFoundation */, + A9B9C203182391DF00416A4E /* MP42FoundationFoundationTests */, ); }; /* End PBXProject section */ @@ -797,7 +797,7 @@ }; A9B9C209182391DF00416A4E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = A9B9C1EC182391DF00416A4E /* MP42Foundation */; + target = A9B9C1EC182391DF00416A4E /* MP42FoundationFoundation */; targetProxy = A9B9C208182391DF00416A4E /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -851,7 +851,7 @@ 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_FUNCTION = NO; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -891,7 +891,7 @@ 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_FUNCTION = NO; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -914,8 +914,8 @@ DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "MP42/MP42-Prefix.pch"; - INFOPLIST_FILE = "MP42/MP42-Info.plist"; + GCC_PREFIX_HEADER = "MP42/MP42Foundation-Prefix.pch"; + INFOPLIST_FILE = "MP42/MP42Foundation-Info.plist"; INSTALL_PATH = "@loader_path/../Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", @@ -923,7 +923,7 @@ "$(SRCROOT)/ffmpeg/lib", "$(SRCROOT)/Tesseract/lib", ); - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = MP42FoundationFoundation; WRAPPER_EXTENSION = framework; }; name = Debug; @@ -936,8 +936,8 @@ DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "MP42/MP42-Prefix.pch"; - INFOPLIST_FILE = "MP42/MP42-Info.plist"; + GCC_PREFIX_HEADER = "MP42/MP42Foundation-Prefix.pch"; + INFOPLIST_FILE = "MP42/MP42Foundation-Info.plist"; INSTALL_PATH = "@loader_path/../Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", @@ -945,7 +945,7 @@ "$(SRCROOT)/ffmpeg/lib", "$(SRCROOT)/Tesseract/lib", ); - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = MP42FoundationFoundation; WRAPPER_EXTENSION = framework; }; name = Release; @@ -965,8 +965,8 @@ "DEBUG=1", "$(inherited)", ); - INFOPLIST_FILE = "MP42Tests/MP42Tests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; + INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist"; + PRODUCT_NAME = MP42FoundationFoundationTests; TEST_HOST = "$(BUNDLE_LOADER)"; WRAPPER_EXTENSION = xctest; }; @@ -983,8 +983,8 @@ ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "MP42/MP42-Prefix.pch"; - INFOPLIST_FILE = "MP42Tests/MP42Tests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; + INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist"; + PRODUCT_NAME = MP42FoundationFoundationTests; TEST_HOST = "$(BUNDLE_LOADER)"; WRAPPER_EXTENSION = xctest; }; @@ -993,7 +993,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - A9B9C1E7182391DF00416A4E /* Build configuration list for PBXProject "MP42" */ = { + A9B9C1E7182391DF00416A4E /* Build configuration list for PBXProject "MP42Foundation" */ = { isa = XCConfigurationList; buildConfigurations = ( A9B9C213182391DF00416A4E /* Debug */, @@ -1002,7 +1002,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - A9B9C215182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42Foundation" */ = { + A9B9C215182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationFoundation" */ = { isa = XCConfigurationList; buildConfigurations = ( A9B9C216182391DF00416A4E /* Debug */, @@ -1011,7 +1011,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - A9B9C218182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationTests" */ = { + A9B9C218182391DF00416A4E /* Build configuration list for PBXNativeTarget "MP42FoundationFoundationTests" */ = { isa = XCConfigurationList; buildConfigurations = ( A9B9C219182391DF00416A4E /* Debug */, diff --git a/MP42.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MP42Foundation.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 68% rename from MP42.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to MP42Foundation.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 041d5c0..c4727af 100644 --- a/MP42.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/MP42Foundation.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:MP42Foundation.xcodeproj"> diff --git a/MP42.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme b/MP42Foundation.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme similarity index 89% rename from MP42.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme rename to MP42Foundation.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme index 41a39ab..50822e4 100644 --- a/MP42.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme +++ b/MP42Foundation.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/MP42.xcscheme @@ -16,8 +16,8 @@ BuildableIdentifier = "primary" BlueprintIdentifier = "A9B9C1EC182391DF00416A4E" BuildableName = "MP42Foundation.framework" - BlueprintName = "MP42Foundation" - ReferencedContainer = "container:MP42.xcodeproj"> + BlueprintName = "MP42FoundationFoundation" + ReferencedContainer = "container:MP42Foundation.xcodeproj"> @@ -34,8 +34,8 @@ BuildableIdentifier = "primary" BlueprintIdentifier = "A9B9C203182391DF00416A4E" BuildableName = "MP42FoundationTests.xctest" - BlueprintName = "MP42FoundationTests" - ReferencedContainer = "container:MP42.xcodeproj"> + BlueprintName = "MP42FoundationFoundationTests" + ReferencedContainer = "container:MP42Foundation.xcodeproj"> diff --git a/MP42.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/xcschememanagement.plist b/MP42Foundation.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 100% rename from MP42.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/xcschememanagement.plist rename to MP42Foundation.xcodeproj/xcuserdata/damians.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/MP42Tests/MP42Tests-Info.plist b/MP42Tests/MP42FoundationTests-Info.plist similarity index 100% rename from MP42Tests/MP42Tests-Info.plist rename to MP42Tests/MP42FoundationTests-Info.plist