Error when opening Blender 2.74 .obj, .stl or .ply export files in Xcode7 beta

Dear all,


I'm hoping someone will be able to advise me on how to resolve this error. I have tried numerous times to open files exported from Blender 2.74 in .obj, .stl or .ply formats, but get the same error message each time: 'The document "testCube.obj" could not be opened. Unknown or missing file'.


Below is a description of how I generate the error, starting with the default cube object in Blender 2.74 and ending with Xcode7 beta:


  1. Open Blender. The 3D viewport contains the default cube object.
  2. In the Properties Window, click on the Materials button
  3. In the Diffuse panel, set the colors to Red: 0.5, Green: 1.0, Blue: 1.0
  4. Save the file as 'testCube' to a folder on my desktop
  5. Select File > Export > Wavefront(.obj)
  6. In the resulting Export window, click 'Export OBJ' without making any adjustments to the default settings in the 'Export OBJ' panel on the left hand side.
  7. Two files are saved to my folder: testCube.obj and testCube.mtl
  8. First approach to opening the file in Xcode7: Two-finger-click on testCube.obj, select 'Open With', then select 'Xcode-beta (default)'. Outcome: Xcode spends a few moments opening then displays this message: 'The document "testCube.obj" could not be opened. Unknown or missing file'.
  9. Second approach: Open Xcode7 and create a new SceneKit project. Drag testCube.obj into 'art.scnassets' folder. Double-click on testCube.obj within Xcode7. Outcome: The same error message.
  10. Repeating steps 5 - 9 for .ply and .stl formats results in the same error.


As an aside, I am able to open a .dae file exported in the same manner as steps 5 - 9 in Xcode7 beta without any error.


Please help if you can.

Answered by Tunde in 12006022

I resolved this error by installing OS X 10.11 beta.

Accepted Answer

I resolved this error by installing OS X 10.11 beta.

interesting because in the API it says


https://developer.apple.com/library/prerelease/ios/documentation/ModelIO/Reference/MDLAsset_Class/index.html#//apple_ref/occ/instm/MDLAsset/objectAtIndex:

The set of supported formats includes Alembic (

.abc
), Wavefront Object (
.obj
), Polygon (
.ply
), and Standard Tessellation Language (
.stl
). Additional formats may be supported as well.


Is this MDLAsset class supposed to be only for non dae models?


"Model I/O can share data buffers with the MetalKit, GLKit, and SceneKit frameworks to help you load, process, and render 3D assets efficiently." What does this mean 'can' share??? Ugh, no examples or source code.



i've exported dae from blender and imported it with no problems but would like to import something more native to blender.

Error when opening Blender 2.74 .obj, .stl or .ply export files in Xcode7 beta
 
 
Q