no main-page.xml, other errors - ios

Running on mac os, High Sierra, xode correctly installed and certificates issued.
tns run ios
produces the following and does not generate a main-page.xml file -- why?
Note - simulator does launch and displays a blank iphone - if I manually create a main-page.xml file it runs but doesn't load the 'may app' apple image as suggested. Any help with the errors below and other would be appreciate as I'm stuck. Thanks.
Building project…
Xcode build…
=== BUILD TARGET HellowWorld OF PROJECT HellowWorld WITH CONFIGURATION Debug ===
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.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
/Users/XXX5/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.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
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm:
No such file or directory
Project successfully built.
Installing…
Successfully installed on device with identifier
‘02A10B95-DB8D-4C7B-8220-839642BCB7C2’.
Successfully transferred all files.
Refreshing application…
Successfully synced application org.nativescript.HellowWorld on device
02A10B95-DB8D-4C7B-8220-839642BCB7C2
.

Related

Titanium ios build error: The folder “Headers” doesn’t exist

I am getting an error while building the titanium app for ios
[TRACE] error: The folder “Headers” doesn’t exist. (in target 'Test' from project
'Test')
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] ProcessXCFramework /Users/myuser/Projects/v2-mobile-
app/modules/iphone/ti.intercom/1.0.0/ti.intercom.xcframework
[ERROR] (1 failure)
I tried searching it on the forum but did not resolve it yet.
I am using SDK version 9.3.2.GA and xcode 12
The ti.intercom.xcframework is a static library which has been compiled as an xcframework. Within the framework's directory you'll find the directories for the different platforms the module has been compiled for. Each of these folders is missing the Headers folder (probably lost within git commits), as the Headers directories are empty. Just create empty 'Headers` directories within each platform tree, and add a .gitkeep file to ensure the changes propagate through git.
ti.intercom.xcframework
ios-arm64
Headers (missing, create an empty one)
libti.intercom.a
ios-x86_64-simulator
Headers (missing, create an empty one)
libti.intercom.a
Trying building with XCode 11.7 instead.

XCode fails to create archive with 'unable to spawn process /usr/bin/make' error

Having trouble while creating archive of ios project (swift).
The project has a build target, which requires /usr/bin/make to be set as build tool, but while trying to create an archive I constantly get error: unable to spawn process '/usr/bin/make' (No such file or directory)
The make file exists in /Applications/Xcode.app/Contents/Developer/usr/bin/ and also added to PATH variable
Despite XCode provided only error: unable to spawn process '/usr/bin/make' (No such file or directory) message, the real reason was in the same target's External Build Tool Configuration Directory path value. It required different directories for debug and release builds

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

How to solve Xcode compile warning: "when processing... in... no such file or directory"?

When I build in Debug schema, I see no warnings, but in Release I get 2 warnings:
while processing /Users/[path to my xcode project]/libUserVoice.a(UserVoice.o):
warning: /var/folders/s_/m1fjy19n3_x5tnr4pfvx_z1c1111gp/C/com.apple.DeveloperTools/7.0-7A218/Xcode/SharedPrecompiledHeaders/UserVoice_Prefix-cemskxhozggatlabrcxqvydduxjw/UserVoice_Prefix.pch.pch: No such file or directory
while processing /Users/[path to my xcode project]/libUserVoice.a(UserVoice.o):
warning: /var/folders/s_/m1fjy19n3_x5tnr4pfvx_z1c1111gp/C/com.apple.DeveloperTools/7.0-7A218/Xcode/SharedPrecompiledHeaders/UserVoice_Prefix-axbllcwdvmtdfsgaozoqlvgidayx/UserVoice_Prefix.pch.pch: No such file or directory
In fact there is no such directory as /var/folder/s_.
I think I this is the first release build since update to Xcode 7.3.
What did not help so far:
Cleaning build folder
Restarting Xcode
Removing files in ~/Library/Developer/Xcode/DerivedData/
Removing files in ~/Library/Caches/com.apple.dt.Xcode/
Removing folders and files in all folders /var/folders/.../SharedPrecompiledHeaders
What I observed:
The Xcode parameter Precompiled Headers Cache Path points to a different directory /var/folders/ck/...
What is the reason for these warnings?
OK what finally helped was:
Removing the library libUserVoice.a mentioned in the warning
Getting the source code from github and rebuilding the library
Adding the newly built library
When I removed the new library and replaced it with the old one the warnings appeared again. The old one is a compiled binary that is provided by the vendor. So it seems this has nothing to do with Xcode but with the vendor's build. Still, if anyone can shed light on this issue it would be interesting to know the background.
Hint: Make sure to build the library as a universal binary so it can run on both ARM (iOS device) and i386 (iOS Simulator) architectures.

Binary runs in terminal but not in xcode simulator. When using the source code I get the same error

I'm using system() to call an executable binary that runs perfectly fine in the terminal, but does not work in the iOS simulator. I get a runtime error.
The error that I'm getting is:
dyld: unloaded: /software/evpath-4.dev/lib/libcmselect.so
dlopen() failed, error: 'dlopen(libcmselect.so, 1):
Library not loaded: libcercs_env.1.dylib
Referenced from: /software/evpath-4.dev/lib/libcmselect.so
Reason: image not found'
dlerror()
Failed to load required select dll.
Search path includes '.', '/usr/local/pkg/working/evpath_base/nightly_build_area/evpath/build', '/software/evpath-4.dev/lib' and any default search paths supported by ld.so
I also have the source code for the binary. I imported all the header files and all the libraries pertaining to the source code. It also builds successfully, but when I try and execute it, it gives me the same error.
Gaurd Malloc is unchecked and I've tried adding a Run Script in the Build Phases that sets all the environments that would have been set given I had run it in a terminal shell.

Resources