something wrong in codename1.ext.codescan cn1lib for iOS - ios

When I am sending iOS build with new Codename One Scanner library (I varify import statement and its import com.codename1.ext.codescan.CodeScanner;)
then I am getting following error generated on server and iOS build is failed.
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m:2:
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/ScanCodeImplExt.h:13:
/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/CVZBarReaderViewControllerExt.h:3:9: fatal error: 'ZBarReaderViewControllerExt.h' file not found
** BUILD FAILED **
The following build commands failed:
CompileC build/StockTake.build/Release-iphoneos/StockTake.build/Objects-normal/armv7/com_codename1_ext_codescan_NativeCodeScannerImpl.o StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
its working for android, only iOS is having issue.
-----Edit-----
I have downloaded .cn1lib from the link provided in installation step on https://github.com/codenameone/cn1-codescan and I downloaded it today again to check latest.

It looks like I forgot to upload the lastest build after fixing this same issue back in December. I have rebuilt with latest sources and uploaded the cn1lib. Try downloading again. Should work now.

Related

XCode build error /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I am trying build an IOS app written in ReactNative. The application written using XCode 11.4. Then I got a new Macbook with XCode version 12.5 installed. So I cloned the project from the git and run npm install and tried to run the project using XCode. Then I got the following error.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I checked any issues as suggested by the accepted answer in this link,https://stackoverflow.com/questions/10373016/command-xcode-app-contents-developer-toolchains-xcodedefault-xctoolchain-usr-bi. But there is nothing wrong with it.
Also, I tried cleaning the project and building the project again. It did not solve the problem as well.
Then I tried deleting the project targets that are for tests well and tried to clean and build the project again. But it did not work either.
I tried deleting everything in the Derived Data folder and tried building the project again as well. It did not work either.
When expand the log, this is the error I am seeing.
In file included from /Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/ReactCommon/jsi/JSIDynamic.cpp:6:
In file included from /Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/ReactCommon/jsi/JSIDynamic.h:8:
/Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: fatal error: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Why am I getting that error and I can I possibly fix it?

Xcodebuild script error: *.h file not found

I have this error pop-up with the new xcode version ( mine is Version 12.4 (12D4e) ).
So the problem is this, I have added a framework to the Frameworks and Binaries section, and inside xcode everything is great, I can build, test, profile, archive, and run my SDK on iOS and iOS simulator, but when I want to build it with Makefile and xcodebuild, it fails and spits out this error:
/Users/user/Desktop/sdk-ios/SDK/SDK/Pinning.m:10:9: fatal error: 'TrustKit/TrustKit.h' file not found
The framework in question is added as a xcframework.
below this error, is this:
CompileC /Users/user/Library/Developer/Xcode/DerivedData/SDK-agtufexqywklahgqpkyokhljwrbm/Build/Intermediates.noindex/SDK.build/Release-iphonesimulator/SDK\ Framework.build/Objects-normal/x86_64/Pinning.o /Users/user/Desktop/sdk-ios/SDK/SDK/Pinning.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
As I said, inside XCode everything works fine, and the Framework header files are found and linked, and I've tested it, everything works when running.
Any suggestions on what to do or where to look? I've read almost everything and the information is getting scarce.
Regards,
Laurynas.
So I've added to the Header Search Paths the path where frameworks are and made that path recursive and this fixed my issue.

Issues with Xcode

I'm trying to build a simple app in Xcode however I'm getting this error saying build failed
:0: error: PCH was compiled with module cache path '/Users/apple/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/5JW54F8EE7JD', but the path is currently '/Users/Neil/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/5JW54F8EE7JD'
:0: error: missing required module 'SwiftShims'
what can I do to solve it?
You can try delete derived data of your app and then clean and build app, you can follow the steps of the following link https://programmingwithswift.com/delete-derived-data-xcode/. Also, you can follow this link Fixing Xcode

not able to upload .c file to git

Hi am facing an issue while trying to upload my ios project to git.
All files get uploaded except a file called "sqlite3.c"
And when i try to build for device its throwing up this error
clang: error: no such file or directory:
When i change build target to ios simulator it builds fine and the missing file sqlite3.c gets generated automatically.
Please let me know if you have any info about the problem of file missing in git or about error while building for device as target in xcode.
Thanks
Santosh

Apple Mach - O Linker Error.No such file or directory Swifty Json

i am using cocoapods to install Library Alamofire and SwiftyJson...Everytime when i compile or run those library are working fine.But when i try to Archive it gives me error as below
Apple Mach - O Linker Error error: no such file or directory:
'SwiftyJSON'
Why is this happening,How can i solve this issue?
UPDATED:
i just removed all the pods file from the project and manually imported the library.Still showing the same issue??
Since it's producing error while archiving (and is working for regular run in simulator), check linker flag for release.
Tally linker flag for release and debug.
If it's different , copy flag from debug to release.
I had the similar problem with swifty json and alamofire.
Hope this helps.

Resources