- Home /
Assetbundle can't load in IPhone
I call BuildAssetBundle with BuildTarget.iPhone. And Also Put the asssetbundles in the iPhoneStreamingAssets folder, then load them from "file://" + Application.dataPath + "/Raw/";
But it still doesn't work. The Xcode's error is below:
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
The file can not be loaded because it was created for another build target that is not compatible with this platform. Please make sure to build asset bundles using the build target platform that it is used by. File's Build target is: 13
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/Serialize/SerializedFile.cpp Line: 258)
The asset bundle 'file:///var/mobile/Applications/2CFFBE43-E05D-414B-A3A5-8EA23A438658/carsns.app/Data/Raw/santana.assetbundle' can't be loaded because it was not built with the right version or build target.
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/Misc/AssetBundleUtility.cpp Line: 120)
Just checking: are you creating the iPhone-targeted asset bundle on a machine other than a $$anonymous$$ac? Because you need to create those bundles on $$anonymous$$ac only
Answer by saviosun · Oct 15, 2011 at 04:14 PM
thanks Hendriks, I am sure my mac book pro is running well with MacOS. :))
Did you resolve this issue? I am also stuck with the same problem.
Your answer