I am trying to install some libraries in a project using cocoapods on my vmbox. The current Podfile is in the same directory as my .xcodeproj and the contents of my Podfile is:
platform :ios, '7.0'
pod 'Mantle'
pod 'LBBlurredImage'
pod 'TSMessages'
pod 'ReactiveCocoa'
When trying to run:
pod install
from the command line I get the error
[!] Unable to find a target
Similar question here:
How do I select a project in my Podfile? I'm getting the error: Unable to find the Xcode project for the target 'Pods'
For me I edited using the pico editor as instructed in the tutorial, and it worked.
The problem appears because your "Target build" is empty in your Xcode (Project file -> Targets). In Xcode 6.0+ when you create an "Empty" project (File -> New Project -> Others), it creates an totally empty project, not like in the previous versions. If you want to have an empty project like in Xcode 5, you need to create an "Single View Application" and make some changes like described here: How to create an Empty Application in Xcode 6 without Storyboard
Related
I’ve been trying to explore WSO2 Microgateway and set up a Microgateway project. Building the project in Windows 10 with the command “micro-gw build project-name” is giving this error: “Could not find or load main class org.wso2.apimgt.gateway.cli.cmd.Main”.
I’ve downloaded the Toolkit and Runtime from https://wso2.com/api-management/api-microgateway/. I've set the Path environment variable to the /bin directory of the Toolkit and Runtime extracted folders, but still the “micro-gw build project-name” command is giving error “Could not find or load main class org.wso2.apimgt.gateway.cli.cmd.Main”. I’ve also cloned the source code from Github (https://github.com/wso2/product-microgateway/) which has the Main.java class and tried setting environment variables to its path.
I also tried setting the environment variables to the path where Toolkit batch file is present. I also followed the steps mentioned here, https://github.com/wso2/product-microgateway/#running-the-microgateway.
I'm assuming the Toolkit batch file (micro-gw) would execute the Main.java class coming up in the error.
These steps did not resolve the error. I'm new to Java based product, and I'm sure I'm missing something here.
Problem is with the init command not the build command. Init command is suppose to setup the TOOLKIT after the first use. It should extract the platform.zip file and copy all of the required resources to relevant places for you.
I hope you get the Project ___ successfully initialized message after running the init command. Just check $TOOLKIT_HOME/logs/ directory to see if there are any information on the log file.
If the log file also doesn't help, as a workaround, copy all the .jar files inside $TOOLKIT_HOME/lib/gateway/platform and $TOOLKIT_HOME/lib/gateway/cli to $TOOLKIT_HOME/lib/platform/bre/lib and try again, that should work.
Also please report this issue at https://github.com/wso2/product-microgateway/issues
I've installed veins_inet project with omnet++ 5.0 and sumo 0.28. When I try to run the .ini on veins_example file this error appears:
Error in the module(omnetp::cModule) Scenario during network setup: Class Veins::VeinsInetManager not found
How do I solve this problem?
Is this the whole error message?
This kind of error can happen when the project is not properly created. To check that, verify if there is a folder named "Includes" in your project (you can see it in eclipse). If no, create a new project in Eclipse New | Project | OMNeT++, and paste your files there.
I am using CLion (C++ IDE) for editing a ROS package. I was able to open a package by opening the CMakeLists.txt file. But, I get an error,
"FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that
no ROS setup.sh was sourced before"
How do I solve this problem? Will I be able to make the project in CLion (If so, how do I) after I make changes to the code or do I have to catkin_make in a separate terminal?
Try this (for Linux):
Open a command line
Run catkin_make on your package.
source your catkin_workspace/devel/setup.bash file e.g. source ~/my_dev_folder/catkin_ws/devel/setup.bash
Start CLion from [CLion install dir]/bin/clion.sh e.g. cd ~/Downloads/clion-1.2.4/bin && ./clion.sh
CLion should then start with knowledge about the packages in your catkin workspace, through the local environment variables set up by the setup.bash file.
To add on to what WillC suggested, you can also modify the desktop entry to start the application from bash instead of manually doing so.
To do this, edit the desktop file located at
~/.local/share/applications/jetbrains-clion.desktop
by modifying the line containing Exec= to
Exec=bash -i -c "/INSTALL_LOCATION/clion-2016.3.2/bin/clion.sh" %f
To add on to what WillC suggested,CLion reload the last cmake compiling result by default.
However, if you failed to find catkin.cmake during the last attempt even though you source the devel/setup.bash and open CLion, you also cannot find catkin.cmake.
You should click File --> Reload Cmake Project and you should get the right result.
I've been using NetBeans for the last couple of years and only recently upgraded to 8.0.2. It seems that the new project file tracks which files are open in the project workspace (C++) and thus the project file appears as modified whenever I open Netbeans, although I haven't changed anything. Is there a setting to disable this?
Create a file named ".gitignore" in the top-level directory, if it does not
already exist.
Add the line:
nbproject/private/
To do this with Netbeans:
Window -> Files, Select the Directory and right-click for Pop-up.
New -> Other ... -> Empty File.
Name the file ".gitignore"
When you do diffs and commits etc. it should ignore the private files that might have changed.
I try to install RestKit (throu CocoaPods) to my Cocos2d project. It goes fine but when I try to build my project I got 38 errors with libPods.a at github they told me that is a problem with my options. I should set $(inherited) in all suboptions in "search paths". I did it but beside that I have <myproject>/libs/kazmath/include in Header Search Paths and <myproject>/libs in User Header Search Paths [screen shots].
When I delete those lien and left only $(inherited) then build fail because "kazmath.h was not found."
Any advice?
Never forget about building whole workspace, if you build only one project, without pods it works only on iOS device.