question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS build fails on build.phonegap.com

See original GitHub issue

Not sure if this is the correct place to post, but I’m trying to build an app with this plugin using build.phonegap.com and it’s working great on android but I’m getting the following error for iOS.

** BUILD FAILED **

The following build commands failed:
    CompileSwift normal arm64 /project/ProjectPulse/Plugins/org.flybuy.cordova.background-location-services/CDVBackgroundLocationServices.swift
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

With a bunch of “undeclared type” errors like the below

/project/MyProject/Plugins/org.flybuy.cordova.background-location-services/CDVBackgroundLocationServices.swift:20:29: error: use of undeclared type 'UIWebView'
var LocationServiceWebView: UIWebView?

Relevant lines in config.xml (I think)

<preference name="deployment-target" value="7.0" />
<plugin name="cordova-background-location-services" spec="~1.0.0" />

From what I can gather from some googling this seems to be related to bridging headers but I have no experience with Swift so am not sure how to go about fixing it. Any help would be greatly appreciated. If this isn’t the correct place to ask about this would it be possible to point me in the right direction?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
createdincodecommented, Apr 13, 2016

Hi @ivanssa

It looks to me like you need the following line in your config.xml file to make sure build.phonegap.com builds for ios 7+

<preference name="deployment-target" value="7.0" />

0reactions
createdincodecommented, Apr 16, 2016

@ivanssa I have the same issue unfortunately so I won’t be much help - unfortunately I don’t have great access to ios devices so testing it takes me a while. If I find a solution I’ll post it here

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS build fails with Phonegap Build · Issue #794
I'm using Phonegap build. PhoneGap (iOS / Android / Windows) cli-9.0.0 (5.0.1 / 8.0.0 / 7.0.0) ...
Read more >
Phonegap Build: iOS fails - cordova
Phonegap Build : iOS fails ... If I deavtivate both of them, the build works fine. I'd appreciate any help.. cordova · phonegap-build...
Read more >
iOS Build Failure Resolutions
iOS build fails with error: "App" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor.
Read more >
xcode/cordova signing errors | Apple Developer Forums
Command: cordova build ios --device --buildConfig. I have used correct provisioning profile and team etc in build.json. What is this ".app: unknown error...
Read more >
Android build fails
Hi Sid, Mendix hybrid apps that employ push notifications can no longer be built directly using the Phonegap Build flow in the Mendix ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found