phonegap / phonegap-webview-ios

Native iOS + PhoneGap Template
Apache License 2.0
36 stars 32 forks source link

use_frameworks! #3

Open onato opened 8 years ago

onato commented 8 years ago

I would like to use the webview in a project that uses swift pods, so I need to set use_frameworks!. If I do, I run into issues compiling cordova-plugin-file.

Podfile

platform :ios, '8.0'
use_frameworks!
…

Something with the phonegap-ios-template also gets messed up so that I can't press any of the buttons.

simulator screen shot 22 12 2015 1 55 38 pm

hollyschinsky commented 8 years ago

Hi @onato, I recently documented the process of using Cordova with Swift via a bridging header in our PhoneGap Docs here. Hope this helps! Holly

lonslonz commented 8 years ago

Hi, I have the same issue with @onato. I just followed http://docs.phonegap.com/develop/1-embed-webview/ios. But when I ran it, I couldn't click anything because of small white box in left upper corner.

hollyschinsky commented 8 years ago

Hi there, the issue with the button clicking has been fixed and pushed to the CocoaPods repo (as version 0.2.0) if you want to update your projects and try again. I also added a reference to the cordova-plugin-wkwebview-engine podspec in the Podfile sample.

I'll update this issue again with the things that are needed to support the use_frameworks.

Thanks! Holly

cguodesign commented 8 years ago

Hi Holly, Just found out that if I chose use_frameworks, it tell me that 'CDVViewController.h' file not found. in the bridging file And if I delete this line, everything works fine.

revolunet commented 8 years ago

@cguodesign does your webview launch when you have the use_frameworks option ?

Here it loads but doesnt find the config.xml due to issues with bundled ressources.

StevenApple commented 8 years ago

I have the same problem, how can i resolve it?