Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Project Generation - unsupported Xcode project file format #601

Open
danoli3 opened this issue Jan 26, 2025 · 4 comments
Open

iOS Project Generation - unsupported Xcode project file format #601

danoli3 opened this issue Jan 26, 2025 · 4 comments

Comments

@danoli3
Copy link
Member

danoli3 commented Jan 26, 2025

The project at ‘/Users/one/SOURCE/openFrameworksiOS/apps/boomcore/Neomad/Neomad.xcodeproj’ cannot be opened because it is in an unsupported Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.

Image

JSON:

{
	"_OFProjectGeneratorVersion": "0.86.0",
	"objects": {
		"002C7952-9E60-4399-B983-AF7D50082C34": {
			"fileEncoding": "4",
			"isa": "PBXFileReference",
			"lastKnownFileType": "sourcecode.cpp.h",
			"name": "GameControllerEvent.h",
			"sourceTree": "<group>"
		},
		"02840C87-1144-4670-9012-91BB68715B08": {
			"fileRef": "B0BBCCA0-6A6A-44A1-991C-5DD96079095B",
			"isa": "PBXBuildFile"
		},
		"036C60BB-46D0-4AA4-AEF0-8C1B9DAB2501": {
			"fileRef": "AC79BBE5-DA40-4F9D-8990-16EA16E14CD3",
			"isa": "PBXBuildFile"
		},
		"0376D761-4E11-4A8A-A2B1-4073EE0161C9": {
			"fileRef": "5110F8C1-DDE3-493E-86AA-86AB7080DB06",
			"isa": "PBXBuildFile"
		},
		"045C2290-CC22-45A6-908B-B4E4E7F7ACFC": {
			"fileEncoding": "4",
			"isa": "PBXFileReference",
			"lastKnownFileType": "sourcecode.cpp.h",
			"name": "ofxFlashXFLSound.h",
			"sourceTree": "<group>"
		},

We should just switch to a Xcode project parser

@danoli3
Copy link
Member Author

danoli3 commented Jan 26, 2025

osx works though just iOS template.

@danoli3
Copy link
Member Author

danoli3 commented Jan 26, 2025

elcome to the console :)

/Users/one/SOURCE/openFrameworksiOS/projectGenerator/projectGenerator.app/Contents/Resources/app/app/projectGenerator -o"/Users/one/SOURCE/openFrameworksiOS" -a"ofxFlash,ofxTexturePacker,ofxXmlSettings" -p"ios" -t"" "/Users/one/SOURCE/openFrameworksiOS/apps/boomcore/Neomad"
[notice ] { "openFrameworks projectGenerator": "0.86.0" }
[notice ] ofPath set and valid using ["/Users/one/SOURCE/openFrameworksiOS"]

[notice ] setting OF path to: ["/Users/one/SOURCE/openFrameworksiOS"]
[notice ] from -o option

[notice ] -----------------------------------------------
[notice ] target platform is: [ios]
[notice ] templatePath: ["/Users/one/SOURCE/openFrameworksiOS/scripts/templates/ios"]
[notice ] projectPath: ["/Users/one/SOURCE/openFrameworksiOS/apps/boomcore/Neomad"]
[notice ] adding addon: ofxFlash
[notice ] adding addon: ofxTexturePacker
[notice ] adding addon: ofxXmlSettings
[notice ] saving addons.make
[notice ] project created!
[notice ] -----------------------------------------------

1 project created [notice ] in 0.0422857 seconds


[notice ] { "status": "EXIT_OK" }

@dimitre
Copy link
Member

dimitre commented Jan 26, 2025

it is working ok for me.
double check if you have the scripts/templates/ios folder (and it is in json format)
if you edited you need to convert to json again

it seems to be missing json keys that PG gathers from template

@dimitre
Copy link
Member

dimitre commented Jan 26, 2025

here is my script to re-convert after editing the template

plutil -convert json $ofw/scripts/templates/osx/emptyExample.xcodeproj/project.pbxproj 
cd $ofw/scripts/templates/osx/emptyExample.xcodeproj
jq --tab . project.pbxproj > project2.pbxproj
rm project.pbxproj
mv project2.pbxproj project.pbxproj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants