Build input file cannot be found, IOS build failed code - ios

I am making an app build, i have some problem making the build. I searched it and found the fix but that was using the flutter.
Build input file cannot be found: '/Users/macbook/Downloads/tram/App/View/Base.lproj/Main.storyboard'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

I fixed the bug by making copying the code in the file and then delete the file and after creating file again i pasted the code in it and now it is working fine.

Related

I can't start fastlane iOS build. gym ends up with error [duplicate]

following is the error in xcode
I have also tried build legacy from workspace settings but failed to do so.
Multiple commands produce '/Users/saifubaid/Library/Developer/Xcode/DerivedData/antispam-bjwrxskogxnnophfhgkpyxxcqcuj/Build/Intermediates.noindex/ArchiveIntermediates/antispam/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle':
Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/saifubaid/Library/Developer/Xcode/DerivedData/antispam-bjwrxskogxnnophfhgkpyxxcqcuj/Build/Intermediates.noindex/ArchiveIntermediates/antispam/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
Target 'React-Core.common-CoreModulesHeaders-AccessibilityResources' has create directory command with output '/Users/saifubaid/Library/Developer/Xcode/DerivedData/antispam-bjwrxskogxnnophfhgkpyxxcqcuj/Build/Intermediates.noindex/ArchiveIntermediates/antispam/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
stuck on it. tried almost every solution.
Multiple commands produce '/Users/shubhamnagota/dev/zest/zest-app/ios/DerivedData/zestapp/Build/Intermediates.noindex/ArchiveIntermediates/zestapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle':
Click on Pods App
From the list remove React-Core-AccessibilityResources
Clean Project
Build Again
Archive.
Worked for me! :)

Xcode Cloud can't find GoogleService-Info.plist

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

iOS build time error Asset.xcasset No such file or directory

I'm getting an error while trying to run the app on the simulator, using Xcode 12.4
/Users/apple/Library/Developer/Xcode/DerivedData/CCBC-
exyindmimlkaxncxdeubzcgqxqgc/Build/Intermediates.noindex/CCBC.build/Debug-iphonesimulator/CCBC.build/Script-7DBCCAD36C20635EF76D902C.sh: line 4: /Users/apple/Desktop/MyProjects/CCBC_iOS/CCBC.xcodeproj/xcuserdata/.xcassets/Asset.xcasset: No such file or directory
When I select the Asset.xcasset from files in Xcode it shows the file path as /CCBC_iOS/CCBC/Asset.xcasset
Thanks for your help
For me, I had to delete an old script that references this Asset file to be built within Derived Data. Regardless of how much I deleted Derived Data and cleared Build Folder, this script still runs the XCAssets reproducing this bug. I would recommend checking out your Build Phases and Scripts and removing unnecessary files especially for old projects.

Xcode: unable to create symlink when archive iOS project

When I try to archive my project, Xcode fails with following error:
error: unable to create symlink at
'/.../ios/Release-iphoneos/MyApp.app'
I can build the project and also run it on an iPhone.
Has anyone an idea how to fix that?
Removing Release-iphoneos in your build folder might fix that issue.
The symlink command fails because you already have an existing file that the 'ln' command is trying to use. Solution is to delete the file. Conrad's solution works because he recommends deleting the directory containing the file (along with everything else).

Can't compile plcrashreporter in Xcode 4

I can use the prebuilt framework provided on the plcrashreporter project page when compiling for the device, but not for the simulator. I have the same problem described here.
I assume the prebuilt framework does not support the simulator's architecture, so I downloaded out the plcrashreporter source. I opened the Xcode project and selected the CrashReporter-iOS-Simulator > iPhone 4.3 Simulator target. When I try to build the project, I get this error:
libtool: unknown option character `D' in: -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000
I get the same error when I try to build most of the other targets (such as for device).
My next step was to try adding the source files to my project. I no longer have the aforementioned problem; however, I get this error when I try to compile:
fatal error: 'crash_report.pb-c.h' file not found [2]
#import "crash_report.pb-c.h"
^
1 error generated.
Command clang failed with exit code 1
The crash_report.pb-c.h file which is mentioned in the error message simply does not exist; I've searched the plcrashreporter source tree and the internet. Therefore, I have to assume that this file is supposed to be generated somehow, but I cannot figure out how.
(Commenting out the line in PLCrashReport.m on which crash_report.pb-c.h is included results in numerous other compilation errors.)
You are correct in that the file does not exist normally, nor does crash_report.pb-c.c exist, which will be your next error after this one.
The crash_report.pb.h and crash_report.pb.c files are generated at compile time through a build rule. You need to add a custom script to your build process to make them.
First, make sure you have protoc-c in the plcrashreporter folder of your project (plcrashreporter-1.0/Dependencies/protobuf-2.0.3/bin/protoc-c). They buried it deep. This is what your script will be running.
Then find your crash_report.proto file. This is the main input that protoc-c will be using to create your missing files. You can take this directory and put it manually into your script, OR you can make a rule to run the script on every *.proto file. I do the latter.
Then edit your build rules to include a script that runs protoc-c with the flag --c_out="${DERIVED_FILES_DIR}" and your crash_report.proto file as two inputs, this will output crash_report.pb-c.h and crash_report.pb-c.c into the same directory as where your crash_report.proto file is, which should already be accessible in your project.
The build rules in Xcode 4 (and above) are under your project's target's build rules tab. You add a build rule before all your other build rules. Here's what mine looks like in Xcode:
You'll probably have to fiddle with the directory

Resources