iOS build fails on build.phonegap.com
See original GitHub issueNot 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:
- Created 7 years ago
- Comments:13 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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" />
@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