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 Cartfile
echo "binary \"https://code.videolan.org/videolan/VLCKit/raw/master/Packaging/MobileVLCKit.json\" ~> 3.3.0" >> Cartfile
-
carthage update
terminal output - drag and drop
Carthage/Build/iOS/MobileVLCKit.framework
intoFrameworks, Libraries, and Embedded Content
(app target'sGeneral
tab)- Verify that
Framework Search Paths
is automatically updated inBuild Settings
. - Verify that
Embed Frameworks
phase is automatically created inBuild Phases
.
- Verify that
- Create an empty objc file to trigger
FooBarApp-Bridging-Header.h
creation. - 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.md
wrote insidePodfile
source 'https://github.com/CocoaPods/Specs.git'
target 'FooBarApp' do
platform :ios, '8.4'
pod 'MobileVLCKit', '3.3.0'
end
-
pod install
terminal output open FooBarApp.xcworkspace
- Create an empty objc file to trigger
FooBarApp-Bridging-Header.h
creation. - 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 Bitcode
toNo
in theBuild Settings
. - Successfully Build & Run.
Integrating w/ manual build : failure
TODO: Document my steps