I'm getting strange errors from forge run ios CLI - trigger.io

After updating to the latest forge tools. I'm getting strange output when I run forge run CLI on OSX. Has anyone seen this, or know how to fix it?
thank you
output from forge run ios:
[ INFO] Forge tools running at version 3.3.68
[ INFO] Running on iOS device: 8f7798207a11e814971472e932bdc5a4741ba81c
[ INFO] Plist OK
[ INFO] 1 Provisioned Device(s):
[ INFO] ['8f7798207a11e814971472e932bdc5a4741ba81c']
[ INFO] Installing app on device 8f7798207a11e814971472e932bdc5a4741ba81c: is it connected?
[ INFO] ------ Install phase ------
[ INFO] [....] Waiting for iOS device to be connected
[ INFO] [ 0%] Found device (8f7798207a11e814sdfsdf971472e932bdc5a4741ba81c), beginning install
...
[ INFO] ------ Debug phase ------
[ INFO] [ 0%] Looking up developer disk image
[ INFO] [ 90%] Mounting developer disk image
[ INFO] [ 95%] Developer disk image already mounted
[ INFO] [100%] Connecting to remote debug server
[ INFO] -------------------------
[ INFO] sh: /Applications/TriggerToolkit.app/Contents/MacOS/python: cannot execute binary file
[ INFO] ^D
[ INFO] ^D
[ INFO] ^D
[ INFO] quit
[ INFO] quit
[ INFO] ^D
[ INFO] quit
[ INFO] quit
[ INFO] ^D
[ INFO] quit
[ INFO] ^D
[ INFO] quit
[ INFO] ^D

This looks like its because that command tries to run python and its attempting to run the wrong python (/Applications/TriggerToolkit.app/Contents/MacOS/python).
This is probably because you've added /Applications/TriggerToolkit.app/Contents/MacOS to the beginning of your PATH, if you move it to the end of your path then the correct python executable should be used.

After reinstalling (and I assume upgrading) the forge tool kit these errors went away.

Related

How to add a new nodelet to a ROS nodelet manager located in a different package

I'm new to ROS (and CMake, especially) and I've been searching for answers to this question for awhile.
First, I'm using ROS1 Noetic on Ubuntu 20.04 LTS
I am using a LiDAR sensor on my project, and I am using a ROS driver package provided by the manufacturer. Their package is written using nodelets: one nodelet acts as the driver/publisher and a second nodelet acts as a subscriber that assembles ROS bags. I've written a nodelet source file of my own that does some processing on the data published by the LiDAR driver, and I'd like to patch this nodelet into the driver's nodelet manager. I'd like to put this nodelet (and the others I'll be writing) in their own package, while keeping the manufacturer-provided code in its own, separate package.
I made my package and linked the manufacturer's package as a dependency, wrote my nodelet source file in the same namespace as the manufacturer's nodelets (#include'ing the library from the manufacturer's ROS package), made my nodelets.xml file, edited my package.xml to export the nodelets.xml file, tried to write an appropriate CMakeLists.txt file, and then created a .launch file to launch the manufacturer's manager/nodelets followed by my own nodelet.
When I run catkin_make, everything builds without throwing any errors, but when I try to run everything I get the following messages in the terminal:
process[rosout-1]: started with pid [14738]
started core service [/rosout]
process[cepton_manager-2]: started with pid [14745]
process[cepton_driver-3]: started with pid [14747]
process[cepton_subscriber-4]: started with pid [14748]
process[cepton_pruner-5]: started with pid [14750]
[ INFO] [1648137638.259213475]: Loading nodelet /cepton_driver of type cepton_ros/DriverNodelet to manager cepton_manager with the following remappings:
[ INFO] [1648137638.262238546]: waitForService: Service [/cepton_manager/load_nodelet] has not been advertised, waiting...
process[cepton_rviz-6]: started with pid [14755]
[ INFO] [1648137638.289473532]: Loading nodelet /cepton_subscriber of type cepton_ros/SubscriberNodelet to manager cepton_manager with the following remappings:
[ INFO] [1648137638.293830600]: Initializing nodelet with 4 worker threads.
[ INFO] [1648137638.295997429]: waitForService: Service [/cepton_manager/load_nodelet] has not been advertised, waiting...
[ INFO] [1648137638.297265577]: Loading nodelet /cepton_pruner of type vt_cepton/PrunerNodelet to manager cepton_manager with the following remappings:
[ INFO] [1648137638.304628562]: waitForService: Service [/cepton_manager/load_nodelet] is now available.
[ INFO] [1648137638.318009289]: waitForService: Service [/cepton_manager/load_nodelet] is now available.
[ERROR] [1648137638.323951769]: Failed to load nodelet [/cepton_pruner] of type [vt_cepton/PrunerNodelet] even after refreshing the cache: Failed to load library /home/autodrive/catkin_ws/devel/lib//libvt_cepton.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/autodrive/catkin_ws/devel/lib//libvt_cepton.so: undefined symbol: _ZN3pcl7PCLBaseIN10cepton_sdk4util11SensorPointEE13setInputCloudERKN5boost10shared_ptrIKNS_10PointCloudIS3_EEEE)
[ERROR] [1648137638.324030872]: The error before refreshing the cache was: Failed to load library /home/autodrive/catkin_ws/devel/lib//libvt_cepton.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/autodrive/catkin_ws/devel/lib//libvt_cepton.so: undefined symbol: _ZN3pcl7PCLBaseIN10cepton_sdk4util11SensorPointEE13setInputCloudERKN5boost10shared_ptrIKNS_10PointCloudIS3_EEEE)
[FATAL] [1648137638.324638370]: Failed to load nodelet '/cepton_prunerof typevt_cepton/PrunerNodeletto managercepton_manager'
[ INFO] [1648137638.333213726]: [/cepton_driver] cepton_sdk 1.18.2
[cepton_pruner-5] process has died [pid 14750, exit code 255, cmd /opt/ros/noetic/lib/nodelet/nodelet load vt_cepton/PrunerNodelet cepton_manager __name:=cepton_pruner
As you can see, the manufacturer's manager and driver load as expected, but I have trouble attaching my nodelet to the manufacturer's manager.

`flutter install` does not install the app (iOS)

I have successfully built a release version of an iOS app, but when I want to test it on my physical device with flutter install it doesn't install on the device. It says:
Installing com.cool.coolapp to iPhone...
Uninstalling old version...
(base) ➜ cool_app git:(master)
When running flutter install -v the last several lines are:
[ +537 ms] [ 75%] CreatingContainer
[ +17 ms] [ 80%] InstallingApplication
[ +12 ms] [ 85%] PostflightingApplication
[ +8 ms] [ 90%] SandboxingApplication
[ +12 ms] [ 95%] GeneratingApplicationMap
[ +101 ms] [100%] Installed package build/ios/iphoneos/Runner.app
[ +25 ms] "flutter install" took 91,244ms.
[ +9 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 0
So everything looks good, but the app is not on the phone.
flutter run works flawlessly, not sure why flutter install has issues. Can anyone point me in the right direction to troubleshoot?
Try to just physically connect your phone (If you are testing for IOS then your iphone) directly to your computer and run the app from your IDE. Your IDE will automatically recongnise the connected device and install the app on you phone

Problem installing toolchain recipes in iOs

I am trying to package a python app in iOS.
The app is very simple with just 1 line:
from firebase import firebase
I follow the instruction from this link:
https://github.com/kivy/kivy-ios
Everything is good. I use Xcode to push the app to a virtual Simulator. I need to install a recipe pycrypto. So I move to the kivy-ios folder and run the following code as instructed:
sudo ./toolchain.py build pycrypto
It failed with the following error (or warning):
hcaos-iMac:kivy-ios hcao$ sudo ./toolchain.py build pycrypto
[INFO ] Building with 4 processes, where supported
[INFO ] Want to build ['pycrypto']
[INFO ] Loaded recipe pycrypto (depends of ['python', 'openssl'], optional are [])
[INFO ] Loaded recipe python (depends of [u'python3'], optional are [])
[INFO ] Loaded recipe openssl (depends of [], optional are [])
[INFO ] Loaded recipe python3 (depends of ['hostpython3', 'libffi', 'openssl'], optional are [])
[INFO ] Loaded recipe hostpython3 (depends of [], optional are ['openssl'])
[INFO ] Loaded recipe libffi (depends of [], optional are [])
[INFO ] Build order is ['libffi', 'openssl', 'hostpython3', u'python3', 'python', 'pycrypto']
[INFO ] Recipe order is ['libffi', 'openssl', 'hostpython3', 'python3', 'pycrypto']
[INFO ] Include dir added: {arch.arch}/ffi
[INFO ] Include dir added: {arch.arch}/openssl
[INFO ] Global: hostpython located at /Users/hcao/Desktop/kivyios-python3/kivy-ios/dist/hostpython3/bin/python
[INFO ] Global: hostpgen located at /Users/hcao/Desktop/kivyios-python3/kivy-ios/dist/hostpython3/bin/pgen
[DEBUG ] Cached result: Download libffi. Ignoring
[DEBUG ] Cached result: Extract libffi. Ignoring
[DEBUG ] Cached result: Build_all libffi. Ignoring
[DEBUG ] Cached result: Download openssl. Ignoring
[DEBUG ] Cached result: Extract openssl. Ignoring
[DEBUG ] Cached result: Build_all openssl. Ignoring
[DEBUG ] Cached result: Download hostpython3. Ignoring
[DEBUG ] Cached result: Extract hostpython3. Ignoring
[DEBUG ] Cached result: Build_all hostpython3. Ignoring
[DEBUG ] Cached result: Download python3. Ignoring
[DEBUG ] Cached result: Extract python3. Ignoring
[DEBUG ] Cached result: Build_all python3. Ignoring
[DEBUG ] Cached result: Download pycrypto. Ignoring
[DEBUG ] Cached result: Extract pycrypto. Ignoring
[DEBUG ] Cached result: Build_all pycrypto. Ignoring
I'm using Mojave in VirtualBox, python3.
I have no idea why everything is "ignoring".
My app can be packaged successfully in Linux for android.
I am not a Mac user at all. Please help me resolve the issue.
Anything is appreciated.
Look like pycrypto was already compiled from a previous build, and so it didn't do anything.
After compiling a new recipe, you need to update your project to include the new compiled recipe into your project with the command:
./toolchain.py update myproject
Also, please don't use sudo at all, we never ask or need for administrator rights.

No console logs in terminal with Ionic run

I am trying to ionic cordova run ios -lcs or just -cs on an iphone 5s connected via usb to a mac (OSX 10.11.6).
The app runs on the iPhone but I don't see any JavaScript logs in the terminal. And I don't see the device listed in the Development menu in Safari.
ionic info
[ERROR] Error with
/Users/ludux/Documents/PROJETS/BOINE/dev/ne/www/lib/ionic/version.json
file: FILE_NOT_FOUND
global packages:
#ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Gulp CLI : not installed globally
Ionic CLI : 3.4.0
local packages:
#ionic/cli-plugin-cordova : 1.4.0
#ionic/cli-plugin-gulp : 1.0.1
#ionic/cli-plugin-ionic1 : 2.0.0
Cordova Platforms : ios 4.3.1
Ionic Framework : unknown
System:
Node : v7.2.0
OS : OS X El Capitan
Xcode : Xcode 8.2.1 Build version 8C1002
ios-deploy : 1.9.0
ios-sim : 5.0.8
npm : 3.10.9
End of compilation log in terminal:
------ Debug phase ------
Starting debug of iPhone 5s (Global/CDMA) 'iPhone de Lou' (5910f2d7cc2f113756d5de4b942029559ea0cd38) connected through USB...
[ 0%] Looking up developer disk image
[ 95%] Developer disk image mounted successfully
[100%] Connecting to remote debug server
-------------------------
(lldb) command source -s 0 '/tmp/E6C7DA82-1774-45A2-B4B2-0CD3988AE4BD/fruitstrap-lldb-prep-cmds-5910f2d7cc2f113756d5de4b942029559ea0cd38'
Executing commands in '/tmp/E6C7DA82-1774-45A2-B4B2-0CD3988AE4BD/fruitstrap-lldb-prep-cmds-5910f2d7cc2f113756d5de4b942029559ea0cd38'.
(lldb) platform select remote-ios --sysroot '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.2 (14C89)/Symbols'
Platform: remote-ios
Connected: no
SDK Path: "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.2 (14C89)/Symbols"
(lldb) target create "/Users/ludovicroux/Documents/PROJETS/BOARDLINE/dev/boardline/platforms/ios/build/device/BoardLine.app"
Current executable set to '/Users/ludovicroux/Documents/PROJETS/BOARDLINE/dev/boardline/platforms/ios/build/device/BoardLine.app' (arm64).
(lldb) script fruitstrap_device_app="/private/var/containers/Bundle/Application/13EA02BB-85A1-4818-ACDB-161AC1DDE62E/BoardLine.app"
(lldb) script fruitstrap_connect_url="connect://127.0.0.1:59590"
(lldb) command script import "/tmp/E6C7DA82-1774-45A2-B4B2-0CD3988AE4BD/fruitstrap_5910f2d7cc2f113756d5de4b942029559ea0cd38.py"
(lldb) command script add -f fruitstrap_5910f2d7cc2f113756d5de4b942029559ea0cd38.connect_command connect
(lldb) command script add -s asynchronous -f fruitstrap_5910f2d7cc2f113756d5de4b942029559ea0cd38.run_command run
(lldb) command script add -s asynchronous -f fruitstrap_5910f2d7cc2f113756d5de4b942029559ea0cd38.autoexit_command autoexit
(lldb) command script add -s asynchronous -f fruitstrap_5910f2d7cc2f113756d5de4b942029559ea0cd38.safequit_command safequit
(lldb) connect
(lldb) run
success
(lldb) safequit
Process 308 detached
(lldb)

Unable to deploy Trigger.io solution real device when parse.com option is enabled

I want to use parse.com push notifications in my Trigger.io solution, however, when I enable the partners parse.com option and opt to deploy to my iPhone (real device), I get the following error:
[ 48%] Copying /Users/Brady/forge-workspace/rj/development/ios/device-ios.app//retina.png to device
[ 49%] Copying /Users/Brady/forge-workspace/rj/development/ios/device-ios.app//tabs_modalWebViewController.nib to device
[ 50%] TakingInstallLock
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 70%] InstallingEmbeddedProfile
AMDeviceInstallApplication failed: -402620394
The solution deploys successfully to the iOS simulator - just not an real device/iPhone.
You need to setup your certificates and entitlements correctly per these instructions:
https://www.parse.com/docs/ios_guide#push
Then you'll need to specify your provisioning profile and certificates in your Trigger.io local config:
http://docs.trigger.io/en/v1.4/tools/local-config.html
If you still have problems, please contact support#trigger.io sending your config.json and local_config.json.

Resources