Skip to content

Commit f84c674

Browse files
authored
Fix PG macOS (#609)
* GREMLINS! (cherry picked from commit e4412d5) * fix mm -x (cherry picked from commit c3611dd) * version++ * remove flags for code rather than uniquie file * Release
1 parent 1e6bdff commit f84c674

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

commandLine/commandLine.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@
297297
isa = PBXShellScriptBuildPhase;
298298
alwaysOutOfDate = 1;
299299
buildActionMask = 2147483647;
300+
files = (
301+
);
300302
name = "Run Script";
301303
runOnlyForDeploymentPostprocessing = 0;
302304
shellPath = /bin/sh;
@@ -491,7 +493,7 @@
491493
OTHER_LDFLAGS = (
492494
"$(OF_CORE_LIBS)",
493495
"$(OF_CORE_FRAMEWORKS)",
494-
"$(LIB_OF)",
496+
"$(LIB_OF_RELEASE)",
495497
);
496498
PROVISIONING_PROFILE_SPECIFIER = "";
497499
baseConfigurationReference = E4EB6923138AFD0F00A09F29;

commandLine/src/defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define OFPROJECTGENERATOR_MAJOR_VERSION "0"
2-
#define OFPROJECTGENERATOR_MINOR_VERSION "89"
2+
#define OFPROJECTGENERATOR_MINOR_VERSION "90"
33
#define OFPROJECTGENERATOR_PATCH_VERSION "0"
44

55
#define PG_VERSION (OFPROJECTGENERATOR_MAJOR_VERSION "." OFPROJECTGENERATOR_MINOR_VERSION "." OFPROJECTGENERATOR_PATCH_VERSION)

commandLine/src/projects/xcodeProject.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ if( type == DEFAULT ){
453453
else if (ext == ".swift"){
454454
fp.addToBuildPhase = true;
455455
for (auto &c : buildConfigs) {
456-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_SWIFT_FLAGS: string -cxx-interoperability-mode=swift-5.9");
456+
addCommand("Add :objects:" + c + ":buildSettings:OTHER_SWIFT_FLAGS: string " + "-cxx-interoperability-mode=swift-5.9");
457457
// mark all Swift files as C++ interop available :)
458458
}
459459
}
@@ -506,11 +506,11 @@ void xcodeProject::addCompileFlagsForMMFile(const fs::path & srcFile) {
506506

507507
// Tag file as Objective-C++ in Xcode build settings
508508
for (auto & c : buildConfigs) {
509-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string -x objective-c++");
509+
// addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string " + "-xobjective-c++");
510510

511-
if (requiresNoARC) {
512-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string -fno-objc-arc");
513-
}
511+
// if (requiresNoARC) {
512+
// addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string " + "-fno-objc-arc");
513+
// }
514514
}
515515

516516
}
@@ -696,7 +696,7 @@ void xcodeProject::addAddonFrameworks(const ofAddon& addon){
696696

697697
allFrameworks.reserve( addon.frameworks.size() + addon.xcframeworks.size() );
698698
allFrameworks.insert( allFrameworks.end(), addon.frameworks.begin(), addon.frameworks.end() );
699-
// allFrameworks.insert( allFrameworks.end(), addon.xcframeworks.begin(), addon.xcframeworks.end() );
699+
allFrameworks.insert( allFrameworks.end(), addon.xcframeworks.begin(), addon.xcframeworks.end() );
700700

701701
for (auto & f : allFrameworks) {
702702
// for (auto & f : addon.frameworks) {

0 commit comments

Comments
 (0)