Unity to IOS Xcode ERROR Undefined Symbols ARFoundation /AR - ios

I have created an own AR Foundation / ARkit Projekt with Unity 2020.3.25f1 for IOS and played it out to Xcode 14.0.
Now I want to build in XCode for Iphone but get the following errors:
error build: Undefined symbol: _ARFoundationSamples_GetCurrentThermalState
error build: Undefined symbol: _ARGeoTrackingConfiguration_class
error build: Undefined symbol: _ARSession_addGeoAnchor
error build: Undefined symbol: _DoSomethingWithSession
Unfortunately I have not found a solution yet. Same Error with the verifed Unity 2021 Version. Hope for your help.

I have now found the problem myself. In my Unity-Assets-Scenes folder there was an ARKit folder containing various cs. files that contain the aforementioned code.
I have deleted the folder completely. This solved the problem.
In general, it should be noted that most of the errors I have discovered in Unity could be fixed by simply removing files. In other cases, Unity has simply created the structures again itself and created them correctly.

Related

undefined symbol: g_task_set_name in glib

I am upgrading Glib in my project. I am building it using meson. But I am getting below error: undefined symbol: g_task_set_name
Any Solution? Thanks in Advance.
During building, meson should be using freshly-built new lib files of the current version, but somehow in your situation meson found the old 2.58 version lib files first, which lacked the g_task_set_name() symbol. Uninstall/remove/delete the current 2.58 glib lib should fix the problem.

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

Xamarin ios - build error: File not found 57x57#1x

I have ios app(Xamarin Forms). I published my app in test flight - everything was ok.
But I updated Visual Studio to 16.3.8(Windows) and I have issue with build:
File not found: /Users/admin/Library/Caches/Xamarin/mtbs/builds/.../Icon-App-57x57#1x.png
I use assets. I added this file in my folder and conten.json. But I have issue
File not found: /Users/admin/Library/Caches/Xamarin/mtbs/builds/.../Icon-App-57x57#2x.png
File not found: /Users/admin/Library/Caches/Xamarin/mtbs/builds/.../Icon-App-57x57#3x.png
I added this file, but now get error:
File not found: /Users/admin/Library/Caches/Xamarin/mtbs/builds/.../Icon-App-60x60#1x.png
Any advice?
Do I need to manually add these files? or is it a xamarin issue? in the previous version, this worked.

IOS Xcode 8 Dsymulti Warning

I just update my project to Xcode 8 but don't know why my xcode console is flood with Dsymulti warning message.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/CoreFoundation-10I2D2XL7L7X9.pcm: No such file or directory
My project still can build successfully. Any one know how can we deal with these warnings?
For me, I could solve setting in Build Settings
Generate Debug Symbols = No

Xcode Error when trying to build a React Native project on simulator or device

I've had some issues with permissions on the original react native app directory and decided to store my .js files in a separate folder as a backup and recreate the project in the same directory from scratch, hoping to solve the problem.
The new react native project seems to have been created successfully as I was able to build and test in the simulator the basic app. I then re-imported my backed up .js files and linked a particular library i'm using in xcode as well. When I try to build the project from xcode now, to my iphone, I receive the error below:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_RCTEventEmitter", referenced from:
_OBJC_CLASS_$_RCTKeyboardObserver in libReact.a(RCTKeyboardObserver.o)
"_OBJC_METACLASS_$_RCTEventEmitter", referenced from:
_OBJC_METACLASS_$_RCTKeyboardObserver in libReact.a(RCTKeyboardObserver.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I looked around as well and found out some references mentioning that I might be missing a .m file but that seems a bit strange to me as I created this project from scratch, but could it be that things might have changed when I imported my .js files?
I was also told to upgrade to react native 0.26 - the upgrade happened but the issue is still there.
This app used to work before so I can't really find from where the issue is coming from.
Any help will be greatly appreciated.
Thanks!
I did fix this by Cleaning the Project from "Product > Clean" (or Shift+CMD+K)
I eventually ended up re-initiating the whole application from scratch and placed the .js files from the backup I had. Seems to all be working fine now.
I was stuck with the same problem after upgrading to react-native 0.27.1.
After I've cleared my ./ios/build folder, the problem was solved.

Resources