Skip to content

Commit 9e50ef4

Browse files
committed
iOS Template Project Fixes for Target Configuration (Debug/Release)
Also Target Device Simulator or Real. core ios Project - targetname to just simple openFrameworks LIB_OF -> LIB_OF_RELEASE / LIB_OF_DEBUG Object-C enabled by default
1 parent 2e80c2b commit 9e50ef4

File tree

4 files changed

+652
-595
lines changed

4 files changed

+652
-595
lines changed

libs/openFrameworksCompiled/project/ios/CoreOF.xcconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ HEADER_OPENSSL = "$(OF_PATH)/libs/openssl/include"
2626

2727

2828
//------- Libraries
29-
LIB_OF = "$(OF_PATH)/libs/openFrameworksCompiled/lib/ios/openFrameworksiOS.a"
29+
LIB_OF_RELEASE = "$(OF_PATH)/libs/openFrameworksCompiled/lib/ios/openFrameworksiOS.a"
3030
LIB_OF_DEBUG = "$(OF_PATH)/libs/openFrameworksCompiled/lib/ios/openFrameworksiOSDebug.a"
3131

3232
//LIB_FREEIMAGE = "$(OF_PATH)/libs/FreeImage/lib/ios/freeimage.a"
@@ -36,9 +36,8 @@ LIB_OF_DEBUG = "$(OF_PATH)/libs/openFrameworksCompiled/lib/ios/openFrameworksiOS
3636
//LIB_URIPARSER = "$(OF_PATH)/libs/uriparser/lib/ios/uriparser.a"
3737
//LIB_PUGIXML = "$(OF_PATH)/libs/pugixml/lib/ios/pugixml.a"
3838

39-
40-
4139
MISC_FLAGS = "-ObjC"
40+
LINK_OBJC_RUNTIME = YES
4241

4342
OF_CORE_LIBS = $(MISC_FLAGS) $(LIB_OF)
4443

libs/openFrameworksCompiled/project/ios/iOS+OFLib.xcodeproj/project.pbxproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,9 +1140,9 @@
11401140
/* End PBXHeadersBuildPhase section */
11411141

11421142
/* Begin PBXNativeTarget section */
1143-
BB24DE5C10DA7A3F00E9C588 /* iOS+OF Static Library */ = {
1143+
BB24DE5C10DA7A3F00E9C588 /* openFrameworks */ = {
11441144
isa = PBXNativeTarget;
1145-
buildConfigurationList = BB24DED210DA7A3F00E9C588 /* Build configuration list for PBXNativeTarget "iOS+OF Static Library" */;
1145+
buildConfigurationList = BB24DED210DA7A3F00E9C588 /* Build configuration list for PBXNativeTarget "openFrameworks" */;
11461146
buildPhases = (
11471147
BB24DE5D10DA7A3F00E9C588 /* Headers */,
11481148
BB24DEB110DA7A3F00E9C588 /* Sources */,
@@ -1153,7 +1153,7 @@
11531153
);
11541154
dependencies = (
11551155
);
1156-
name = "iOS+OF Static Library";
1156+
name = openFrameworks;
11571157
productName = "Static Library";
11581158
productReference = BB24DED610DA7A3F00E9C588 /* openFrameworksiOSDebug.a */;
11591159
productType = "com.apple.product-type.library.static";
@@ -1179,7 +1179,7 @@
11791179
projectDirPath = "";
11801180
projectRoot = "";
11811181
targets = (
1182-
BB24DE5C10DA7A3F00E9C588 /* iOS+OF Static Library */,
1182+
BB24DE5C10DA7A3F00E9C588 /* openFrameworks */,
11831183
);
11841184
};
11851185
/* End PBXProject section */
@@ -1398,9 +1398,9 @@
13981398
GCC_WARN_UNDECLARED_SELECTOR = YES;
13991399
GCC_WARN_UNUSED_FUNCTION = YES;
14001400
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
1401+
OBJROOT = "$(SRCROOT)/../../lib/ios/build/obj/Debug/";
14011402
ONLY_ACTIVE_ARCH = YES;
14021403
SDKROOT = iphoneos;
1403-
OBJROOT = "$(SRCROOT)/../../lib/ios/build/obj/Debug/";
14041404
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
14051405
WARNING_CFLAGS = (
14061406
"-Wno-non-virtual-dtor",
@@ -1438,8 +1438,8 @@
14381438
GCC_WARN_UNDECLARED_SELECTOR = YES;
14391439
GCC_WARN_UNUSED_FUNCTION = YES;
14401440
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
1441-
ONLY_ACTIVE_ARCH = NO;
14421441
OBJROOT = "$(SRCROOT)/../../lib/ios/build/obj/Release/";
1442+
ONLY_ACTIVE_ARCH = NO;
14431443
SDKROOT = iphoneos;
14441444
WARNING_CFLAGS = (
14451445
"-Wno-non-virtual-dtor",
@@ -1451,7 +1451,7 @@
14511451
/* End XCBuildConfiguration section */
14521452

14531453
/* Begin XCConfigurationList section */
1454-
BB24DED210DA7A3F00E9C588 /* Build configuration list for PBXNativeTarget "iOS+OF Static Library" */ = {
1454+
BB24DED210DA7A3F00E9C588 /* Build configuration list for PBXNativeTarget "openFrameworks" */ = {
14551455
isa = XCConfigurationList;
14561456
buildConfigurations = (
14571457
BB24DED310DA7A3F00E9C588 /* Debug */,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "BB24DE5C10DA7A3F00E9C588"
1818
BuildableName = "openFrameworksiOSDebug.a"
19-
BlueprintName = "iOS+OF Static Library"
19+
BlueprintName = "openFrameworks"
2020
ReferencedContainer = "container:iOS+OFLib.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -51,7 +51,7 @@
5151
BuildableIdentifier = "primary"
5252
BlueprintIdentifier = "BB24DE5C10DA7A3F00E9C588"
5353
BuildableName = "openFrameworksiOSDebug.a"
54-
BlueprintName = "iOS+OF Static Library"
54+
BlueprintName = "openFrameworks"
5555
ReferencedContainer = "container:iOS+OFLib.xcodeproj">
5656
</BuildableReference>
5757
</MacroExpansion>

0 commit comments

Comments
 (0)