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)