flutter iOS build failed (ld: library not found for -lPods-Runner) - build

I am new to flutter. I have created small flutter app and i wanna test it on my real devices but i am unable to generate ios ipa file for testing. Please if anyone could help me with this issues then it would be good for me.thanks in advance!!
I getting this error . :
*iMac:test_app snehal$ flutter build ios
Building com.org.testApp for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 5GC7G69Y22
Starting Xcode build...
Xcode build done. 5.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: library not found for -lPods-Runner
clang: error: linker command failed with exit code 1 (use -v to see invocation) Encountered error while building for device.*

In new projects, in the iOS part is necessary to adjust a few parameters, such as signing, and that you can only do in Xcode.
So, try to open the iOS project with Xcode and try to build it from there. You'll see better warning and error messages there, specially regarding signing.
You can open Xcode and locate your project ios folder, or:
cd yourproject/ios
open -a Xcode .
Then select Product > Run in the menu.

Related

How to open Command Line application built from Xcode outside of Xcode?

I have a console application project which uses my own framework. When I build and run the application from Xcode it's executed successfully. However when I try to open the executable from terminal outside of Xcode I get the following error:
dyld: Library not loaded: #rpath/Logic.framework/Versions/A/Logic
Referenced from: /Users/semyon/Library/Developer/Xcode/DerivedData/VocalTrainer-fyzwymbxfxusrqejhssrjfeovnqg/Build/Products/Debug/./MvxGenerator
Reason: image not found
zsh: abort ./MvxGenerator
The question is: How to deliver the release build of my command line application which uses a framework?
You need to install the framework/ dynamic library at #executable_path/../Resources/lib folder. If you share a .app bundle, just copy it in Contents/MacOS/Resources/lib folder. If a binary, make sure your installer keeps the framework at the right place.
You may want to inspect other open source app bundles which do this:
Cmake
Visual Studio Code
etc

CMake: "Linked Library" error (0xc0000135) when attempting to run on Jenkins Build Machine

CMake relative newbie.
I currently have a Cross-compiling (Windows 10/CentOS) project where I have added a post-build hook to automatically run Google Test, using this method.
Everything works great in Windows and Linux, it correctly builds then executes the Google Test Executable. However, on our Window's server Jenkin's build system, I keep getting the following:
CMake Error at <path to cmake>/cmake-3.17/Modules/GoogleTestAddTests.cmake:40 (message):
Error running test executable.
Path: '<path to project root>/build/extern/<submodule>/tests/Debug/<project>.test.exe'
Result: Exit code 0xc0000135
Doing research, the error code seems to be related to the exe missing a dynamically linked library. However, I can't figure out if it is the main project library (call it project.lib) is missing, or something else. Any help/experience on debugging this would be appreciated.
Just to give an answer:
It turned out the dll libraries for Windows .Net was not installed. After installing them/making sure they were on the path, the problem resolved itself.
I had the same problem with Catch2 on an integration machine using Azure DevOps.
The integration report displays:
CMake Error at C:/Projets/<PROJECT>/application/testing/Catch2/extras/CatchAddTests.cmake:45 (message):
Error running test executable
'C:/Projets/<PROJECT>/application/build/testing/Process/Debug/testing_Process.exe':
Result: Exit code 0xc0000135
Output:
The root cause: the testing_Process.exe binary is missing a required .dll library of external SDK.
The solution: Add the .dll required to the system path of the integration machine.

Error while building OpenConnect project (from official gitlab repository) for Java

Hello i need help about building artefact for Java. I get an error when running this command for build:
./configure --with-vpnc-script=~/Downloads/vpnc-script --with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home --disable-nls.
This is the error that i get:
checking jni.h usability... no
configure: error: unable to compile JNI test program
I need your help please. I'm using release version 8.08 and building it on mac. This is the official gitlab repository
Here is the content of config.log generated
Thanks
It seems that configure script expects you to pass the path to the JDK's include directory, not the JDK itself.
This should work:
--with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/include

flutter iOS build got failed (ld: library not found for -lPods-Runner)

I am new to flutter. I have created small flutter app and i wanna test it on my real devices but i am unable to generate ios ipa file for testing. Please if anyone could help me with this issues then it would be good for me.thanks in advance!! I getting this error . :
*iMac:test_app snehal$ flutter build ios
Building com.org.testApp for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 5GC7G69Y22
Starting Xcode build...
Xcode build done. 5.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: library not found for -lPods-Runner
clang: error: linker command failed with exit code 1 (use -v to see invocation) Encountered error while building for device.*

Running in the Terminal a build made in XCode, how?

Im creating a project in Xcode using OpenCV as a framework. It works great with the Build&Run option from Xcode, but now I need to run it in the Terminal and it gives me this error:
dyld: Library not loaded: #executable_path/../Frameworks/OpenCV.framework/Versions/A/OpenCV
Referenced from: /Users/Victor/Documents/PFC/src/opencv/blob/build/Release/./test3
Reason: image not found
Trace/BPT trap
I look for the build and just execute it with ./
So, any clue?
You need to run it from the build directory rather than the Release directory (assuming Frameworks is a directory in blob)