Issues integrating VLCKit
Description
I'm having a hard time integrating VLCKit in an iOS project.
Below is a description of each path i have tried.
Using carthage and building manually didn't work.
Using cocoapods worked with a little tweak.
If my issues are reproducible, i think the installation steps on the README.md should be updated.
Integrating w/ Carthage : failure
Xcode : Version 11.2.1 (11B500)
Carthage : 0.34.0
- Created a new Single View App with Xcode
cd FooBarApp/touch Cartfileecho "binary \"https://code.videolan.org/videolan/VLCKit/raw/master/Packaging/MobileVLCKit.json\" ~> 3.3.0" >> Cartfile-
carthage updateterminal output - drag and drop
Carthage/Build/iOS/MobileVLCKit.frameworkintoFrameworks, Libraries, and Embedded Content(app target'sGeneraltab)- Verify that
Framework Search Pathsis automatically updated inBuild Settings. - Verify that
Embed Frameworksphase is automatically created inBuild Phases.
- Verify that
- Create an empty objc file to trigger
FooBarApp-Bridging-Header.hcreation. - Delete objc file previously created.
- add
#import <MobileVLCKit/MobileVLCKit.h>to the bridging header. - Try to Build & Run on simulator. Build succeeds. Get an error pop-up
This app could not be installed at this time.with this description - Try to Build & Run on device. Build succeeds. Get an error pop-up
Unable to install "FooBarApp"with this description
Failed attempt
Based on what i found online, I tried to codesign -f the produced FooBarApp.app then drag and drop it directly in my iPhone through the Devices & Simulators window. But it didn't work either.
Integrating w/ CocoaPods : success
Xcode : Version 11.2.1 (11B500)
CocoaPods: 1.7.4
- Created a new Single View App with Xcode
cd FooBarApp/pod init- Based on
README.mdwrote insidePodfile
source 'https://github.com/CocoaPods/Specs.git'
target 'FooBarApp' do
platform :ios, '8.4'
pod 'MobileVLCKit', '3.3.0'
end
-
pod installterminal output open FooBarApp.xcworkspace- Create an empty objc file to trigger
FooBarApp-Bridging-Header.hcreation. - Delete objc file previously created.
- add
#import <MobileVLCKit/MobileVLCKit.h>to the bridging header. - Try to Build & Run on simulator. Build succeeds. Run succeeds. Hurray!
- Try to Build & Run on device. Build fails on linking step with this description
- On app's target i set
Enabe BitcodetoNoin theBuild Settings. - Successfully Build & Run.
Integrating w/ manual build : failure
TODO: Document my steps
Edited by lofo