Xcode compilation WebApps can't find the wrong solution for JS < go >

Source: Internet
Author: User

When using Xcode to do WebApps, use UIWebView to invoke a page, and sometimes encounter problems, one is compiled with a yellow exclamation point of the Warning,js file are error: Warning:no rule to Process "$" ( Project_dir)/jquery-1.8.1.min.js ' of type Sourcecode.javascript for architecture i386

The error reason is: JS and HTML and other resource files when added to project, Xcode mistakenly put JS files in the compiled source code (Compile Sources) folder, the JS code also need to "be compiled."

Workaround: Drag the JS file from the targets->build phases-> Compile Sources to the copy Bundle resource

Knowledge Points:

  • Copy Bundle resources: Refers to the generated product's. What resource files will be included in the app. By using the different settings of the content in the copy Bundle resources, we can let different product contain different resources, including the main icon of the program, etc., instead of incorporating the resources listed in the Xcode project into the brain.
  • Compile Sources: Refers to what source code will be compiled
  • Link Binary with Libraries: refers to which library files are referenced during compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.