Please provide the following:
- SDK Version:42
- Platforms(Android/iOS/web/all):IOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
if (Platform.OS === "ios") {
const asset = Asset.fromModule(require('../../../assests/models/his/3.obj'));
await asset.downloadAsync();
const info = await FileSystem.getInfoAsync(asset.localUri);
console.log('info: ', info);
if (info.exists) {
const content = await FileSystem.readAsStringAsync(info.uri, { encoding: FileSystem.EncodingType.UTF8 });
console.log('content: ', content);
}
}
else {
const mesh = await loadObjAsync({ asset: require("../../../assests/models/his/3.obj") });
console.log('mesh: ', mesh);
}
ios
info: Object {
"exists": true,
"isDirectory": false,
"modificationTime": 1632045490.143659,
"size": 3601266,
"uri": "file:///var/mobile/Containers/Data/Application/3183C9E0-70FD-42BA-A5C4-81265AB7C9B3/Library/Caches/ExponentExperienceData/%2540joelee1021%252Fdolphinsoundfrontendmobile/ExponentAsset-6366d017fc6738579d88fd927f6a8855.obj",
}
[Unhandled promise rejection: Error: File 'file:///var/mobile/Containers/Data/Application/3183C9E0-70FD-42BA-A5C4-81265AB7C9B3/Library/Caches/ExponentExperienceData/%2540joelee1021%252Fdolphinsoundfrontendmobile/ExponentAsset-6366d017fc6738579d88fd927f6a8855.obj' could not be read.]