Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F7FC18156 for ; Wed, 17 Feb 2016 10:25:41 +0000 (UTC) Received: (qmail 16801 invoked by uid 500); 17 Feb 2016 10:25:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 16694 invoked by uid 500); 17 Feb 2016 10:25:18 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 16349 invoked by uid 99); 17 Feb 2016 10:25:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 10:25:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 46B202C1F68 for ; Wed, 17 Feb 2016 10:25:18 +0000 (UTC) Date: Wed, 17 Feb 2016 10:25:18 +0000 (UTC) From: "Sumit Soman (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150246#comment-15150246 ] Sumit Soman commented on CB-10598: ---------------------------------- Thanks, it worked. I was not correctly setting the content security policy tag, and upgrading Cordova to v6.0 also fixed it. This was not needed when I was developing via Visual Studio for Windows Phone. > Unable to run javascript in Cordova iOS project on simulator > ------------------------------------------------------------ > > Key: CB-10598 > URL: https://issues.apache.org/jira/browse/CB-10598 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS > Affects Versions: 5.4.1 > Environment: Mac OSX El Capitan, Xcode v7.2 > Reporter: Sumit Soman > > I created a cordova project, added the iOS platform and built the project. After that I opened the .xcodeproj in Xcode, built it and the homepage showed the sample app homescreen. I then created another js file with the following content in the Staging/js folder > function testLoad(){ > alert("Loaded!"); > } > In index.html, I added > > and called the function > > However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 5.4.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org