Comments (5)
Do you still get the issue if you specify the branch "master" in the Cartfile like below ?
github "dronecore/DroneCore-Swift" "master"
from mavsdk-swift.
Thank you, it fixed the carthage update
! I got the Carthage/Build/iOS/Dronecode_SDK_Swift.framework
. I have access to the Action class from my code.
Then I did these steps:
Add the framework into your project
- Open Project Settings -> General
- Find Embedded Binaries and press +
- Click Other, go one folder up, and select Carthage/Build/iOS/Dronecode_SDK_Swift.framework.
- Do "Product Clean" and "Product Build"
Now I have different issues:
-
When I select simulator as my target device I'm getting this error when I try to build and run the app:
dyld: Library not loaded: @rpath/RxSwift.framework/RxSwift Referenced from: /Users/dima/Library/Developer/CoreSimulator/Devices/5F589720-4CA4-4B85-9279-5E20E5E7A13D/data/Containers/Bundle/Application/601057E6-60DA-4AB7-ADDF-B90F1AC662ED/testCarthageDronecode.app/Frameworks/Dronecode_SDK_Swift.framework/Dronecode_SDK_Swift Reason: image not found
-
When I select an iPad I'm getting this error on the build stage:
ld: '/Users/dima/Work/DroneCode&Yuneec/testCarthageDronecode/testCarthageDronecode/Carthage/Build/iOS/Dronecode_SDK_Swift.framework/Dronecode_SDK_Swift' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/dima/Work/DroneCode&Yuneec/testCarthageDronecode/testCarthageDronecode/Carthage/Build/iOS/Dronecode_SDK_Swift.framework/Dronecode_SDK_Swift' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Also, it is unclear what should I do in the next step
Clean up the download automatically done by the build
Dependencies are needed to build Dronecode_SDK_Swift.framework. The script download-dependencies.sh is downloading a zip containing them. To remove this download:
Open the project Dronecode-SDK-Swift in XCode and do the following:
- Open Project Settings -> Build Phases
- Open Run Script tab
- Put a # before ./download-dependencies.sh or just delete the runscript
- Do I need to manually run
download-dependencies.sh
or it will run automatically? - I didn't find
Run Script
tab inProject Settings -> Build Phases
. Do I need manually addRun Script
tab and paste the script or the Carthage setup isn't working properly?
Thank you for your help. I hope my questions and comments will help to improve the documentation and the setup process.
from mavsdk-swift.
The first error (dyld: Library not loaded: @rpath/RxSwift.framework/RxSwift
) seems like the library has not been copied during the installation (@rpath
is where it looks to load the library at runtime). @ayameMBS: shouldn't he add all the dependencies in his framework as well (i.e. in the "Embedded Binaries")? That's what I do, at least...
For the second error, I think you should disable the bitcode in the "Build Settings" (search for bitcode there). We could try to enable bitcode (all the deps have to be built with the bitcode, not sure what it implies), but I don't think it will make a difference if you disable it for your app.
Thanks for the comments! We will definitely take them into account for the documentation :-).
from mavsdk-swift.
@JonasVautherin yes exactly. @byuarus you need also to add all the frameworks in the folder Carthage/Checkouts/DroneCore-Swift/Source/Dronecode-SDK-Swift/Dronecode-SDK-Swift/libs/dronecode-sdk-swift-deps-latest
And sure thanks for the comments ^^
from mavsdk-swift.
Closing in favor of #47.
from mavsdk-swift.
Related Issues (20)
- Shell commands HOT 3
- Connect to ArduPilot + MavProxy HOT 1
- Use 2 ESP8266 as Serial Bridge over WIFI HOT 4
- Cannot find type 'GRPCCallHandler' in scope HOT 10
- Can't make MAVSDK work with our PX4 based drone HOT 3
- MAVSDK extracts battery info from SYS_STATUS and not BATTERY_STATUS HOT 11
- Adding support for Catalyst (Running iOS framework on macOS) HOT 13
- Mavlink crashes after trying to call «Arm» command HOT 6
- Is there a way to listen to NAMED_VALUE_INT command? HOT 1
- Not able to connect to TXMOD-RFD868. HOT 5
- MissionItem is missing Actions (takeoff, transition, land) HOT 13
- MAVSDK structs and classes should conform protocol (Codable, Hashable, Identifiable) HOT 3
- Documentation not up to date. HOT 3
- Have to connect to QGC first and then run sample app, otherwise telemetry won't display. HOT 6
- Parameters - setParamFloat works but setParamInt does not HOT 13
- How do I connect the camera on the simulator HOT 6
- Does mavsdk support serial port connection? HOT 1
- How do I connect multiple drones? HOT 4
- Hello, when I run Mavsdk-Swift-Example, after connecting the UAV, the CPU will reach 30%. What causes this problem? Can it be solved? HOT 10
- Is it possible to use Manual Control with an UI joystick? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavsdk-swift.