Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by hollym16 · Nov 02, 2017 at 03:14 PM · iosassetbundlewwwxcodeurl

AssetBundle won't download on iPad

I created a basic project with a couple of simple AssetBundles. My project is set to iOS and the BuildTarget when building AssetBundles is set to iOS. The AssetBundles are uploaded to my Amazon S3 server and made public so I can access them in my project. All of this works perfectly in the Editor.

When I push it to my iPad Air 2 via Xcode, the AssetBundles don't show and Xcode gives the following error:

 2017-11-02 14:52:25.205231+0000 abscaletestv1[378:107254] You are using download over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
 2017-11-02 14:52:25.206878+0000 abscaletestv1[378:108182] NSURLConnection finished with error - code -1002
 UnityException: WWW Download had an error: unsupported URL
   at AssetBundleAugmenter+<DownloadAndCache>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0 
   at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 
  
 (Filename: currently not available on il2cpp Line: -1)


In my script I have the following piece of code that makes up the whole URL:

 "file://" + URL + "/" + BundleName;

The URL is assigned in the Inspector and copied from my server, the Bundle Name is also assigned in the Inspector and is the name of the AssetBundle I exported.

Has anyone else come across this problem and found a solution?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MacDx · Nov 02, 2017 at 11:26 PM 0
Share

Wait, I don't get it. You say you are downloading the asset bundle from an Amazon Server but you are using the file:// scheme? How come? Isn't that supposed to be http:// ins$$anonymous$$d?

avatar image hollym16 · Nov 03, 2017 at 09:31 AM 0
Share

@$$anonymous$$acDx The http:// is included as part of the URL

avatar image MacDx hollym16 · Nov 03, 2017 at 11:25 PM 0
Share

Ummmm. So the actual URL ends up being "file://http://someadress.com/BundleName" ?? I've never tried something like that but I'm not sure that works man.

AFAI$$anonymous$$ you need to use either file, or http. Not both.

avatar image hollym16 MacDx · Nov 07, 2017 at 10:14 AM 0
Share

I tried with and without the 'file://' at the beginning and neither worked

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

107 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

IOS build from unity 2017.1.2 and use the unity trash dash package and the game is not running on iphone 5s and game is stuck and not access the assetbundle on IOS ? 0 Answers

WWW Request for image error, unsupported URL 1 Answer

WWW fails to load assetbundle in iOS 1 Answer

is it possible to get the url from a webpage? 1 Answer

On-Demand Resource iOS/Android - AssetBundles 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges