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
Related
I try to build my iOS app (made with Flutter) with Xcode cloud, all is fine until I get this error:
Build input file cannot be found: '/Volumes/GoogleService-Info.plist'. Did you forget to declare this file
as an output of a script phase or custom build rule which produces it?
The file is added to the git repository under ios/Runner and if I try to build using Xcode I don't get the error.
Solved this by moving the file to ios/Runner and adding a reference to it using xcode
I have a project which was working fine till I was working on my older MacBook. I am now working on new MacBook and the same project gives me build error. My friend also works on the new MacBook with same configuration and os but he is able to build it successfully.
Error on my system is :
<unknown>:0: error: no such file or directory: '/Users/myuser/Library/Developer/Xcode/DerivedData/MyProject-dlhksnilacudcebpmorlzpzlkbid/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProject.build/DerivedSources/CoreDataGenerated/Model/Model+CoreDataModel.swift'
Command CompileSwiftSources failed with a nonzero exit code
I have navigated to the path
'/Users/myuser/Library/Developer/Xcode/DerivedData/MyProject-dlhksnilacudcebpmorlzpzlkbid/Build/Intermediates.noindex/MyProject.build/Debug-iphoneos/MyProject.build/DerivedSources/CoreDataGenerated/Model'
There I found an unknown folder named "emplate" under which the required file exists.
I have searched the whole project, build settings, build phases, scripts but nowhere I found "emplate".
The CoreData entity Codegen has been specified as "Category/Extension".
Its better if you can install new version xcode or use same version of xcode which your friend is using, i think some path issues with your current xcode
I have got the solution for this. Renamed and Moved Xcode from Desktop to Applications folder, clean the project , removed DerivedData folder. And it works.
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.
I have a project which uses the ADALiOS project. This project is included in my project, and it works all fine when building to debug on my phone. However, I want to submit the App to the App Store and Archive but I get the following error:
PhaseScriptExecution Run\ Script /Users/User/Library/Developer/Xcode/DerivedData/projectX-gperwbbtttggqpcvozenraexrhrx/Build/Intermediates/ArchiveIntermediates/projectX\ Dev/IntermediateBuildFilesPath/ADALiOS.build/Release-iphoneos/ADALiOS.build/Script-8B19339718BAEDE4008FD93A.sh
cd "/Users/User/Documents/Xcode development/azure-activedirectory-library-for-objc/ADALiOS"
/bin/sh -c \"/Users/User/Library/Developer/Xcode/DerivedData/projectX-gperwbbtttggqpcvozenraexrhrx/Build/Intermediates/ArchiveIntermediates/projectX\ Dev/IntermediateBuildFilesPath/ADALiOS.build/Release-iphoneos/ADALiOS.build/Script-8B19339718BAEDE4008FD93A.sh\"
Creating Framework folder structure at /Users/User/Library/Developer/Xcode/DerivedData/projectX-gperwbbtttggqpcvozenraexrhrx/Build/Intermediates/ArchiveIntermediates/projectX Dev/BuildProductsPath/Release-iphoneos/ADALiOS
Copying public headers from /Users/User/Library/Developer/Xcode/DerivedData/projectX-gperwbbtttggqpcvozenraexrhrx/Build/Intermediates/ArchiveIntermediates/projectX Dev/InstallationBuildProductsLocation/usr/local/lib/Headers/ADALiOS/
cp: /Users/User/Library/Developer/Xcode/DerivedData/projectX-gperwbbtttggqpcvozenraexrhrx/Build/Intermediates/ArchiveIntermediates/projectX Dev/InstallationBuildProductsLocation/usr/local/lib/Headers/ADALiOS/: No such file or directory
I am Archiving using the 'Generic iOS Device' option. I have tried a clean build followed many hints from other build problems but nothing seems to help.
Any suggestion on what could be wrong?
[EDIT:]
I got a clean version of the ADALiOS git repo and this too builds, but does not achieve with the same problem, so it could be related to the ADALiOS project, even though I do not knowhow and why.
I just made a branch in my iOS project and added a target for an WatchKit App in there. When I hit build and run now I get this strange error:
: error: Failed to read file attributes for "/Users/philip.brechler/Documents/motortalk/ForumApp/ForumApp/Images.xcassets /Users/philip.brechler/Documents/motortalk/ForumApp/MOTOR-TALK WatchKit App/Images.xcassets /Users/philip.brechler/Documents/motortalk/ForumApp/MOTOR-TALK WatchKit Extension/Images.xcassets"
Failure Reason: No such file or directory
The directories exist of course and I didn't change anything else then adding the target. I also tried this twice with the same result. Any ideas?
Upgrading to the new version of Cocoapods fixed this for me.