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
Related
I'm trying to figure an error out with Firebase, bit it didn't work well.
Is there anyone to help me?
What I'm doing is :
building iOS app by react-native library
attaching Firebase on this native app
and it worked well in the first place until I CHANGED bundle identifier of my iOS app.
What I did is :
changed bundle identifier on info.plist
renamed folder structure
renamed scheme
renamed project and workspace name
and it turns out that everything works fine except the execution app on simulator.. :(
After succeeding build, when I try to execute app on simulator, error message comes out like the following :
7.1.0 - [Firebase/Performance][I-PRF100005] FIRInstallations error: Error Domain=com.firebase.installations Code=0 "Underlying error: 작업을 완료할 수 없습니다. SecItemCopyMatching (-34018)" UserInfo={NSLocalizedFailureReason=Underlying error: 작업을 완료할 수 없습니다. SecItemCopyMatching (-34018), NSUnderlyingError=0x6000018be0a0 {Error Domain=com.gul.keychain.ErrorDomain Code=0 "SecItemCopyMatching (-34018)" UserInfo={NSLocalizedFailureReason=SecItemCopyMatching (-34018)}}}
7.1.0 - [Firebase/Performance][I-PRF710001] Unable to fetch configurations.
where the meaning of Korean word in the error message is "CANNOT FINISH THE JOB."
it says "firebase installations error occurs." because it cannot fetch configurations.
What should I do to get rid of this error? please help.. I'm struggling with this about a week.
Thanks in advance.
You should not modify the GoogleServices-info.plist yourself.
If you changed the bundle ID for your app, define a new app in your Firebase project, download the updated plist and use that to replace the previous one.
I found an answer. After I changed Firebase config file, GoogleServices-info.plist, What should I do is CLEAN ALL THE PROJECT.
Even cleaning build in Xcode, deintegrating pod file, reset yarn node_modules folder, they're not enough.
What I did is :
npx react-native-clean-project and cleaned all the options.
then the error is gone.
Whenever I try to Create NSManagedObject Subclass for my Core Data Entity. However as soon as I do this I get this error:
Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 1
As you can see it talks about a swiftc file within Xcode itself. So I found this file and deleted it an tried to replace it but I still get the same error.
Here's what I've tried:
Deleting Xcode & Reinstalling
Removing the Command Line Tools & Reinstalling Xcode
Removing the File and Trying to recreate it
Is it because the file there has no code? What should I do?
swiftc is the swift compiler. That error is saying that the swift compiler encountered and error and failed returning an exit code of 1.
Go to the Report Navigator (cmd 9) and choose the build to see the whole error.
I am using podfile for one of iOS project developed with xcode 7.2. It builds without error with simulator and device, also related libraries works properly.
But when I try to Archive app to create build it fails with error log as
clang: error: no such file or directory: 'Crittercism'
clang: error: no such file or directory: 'DownPicker'
I have tried with reinstalling these two pod-libs from terminal, Cleaning derived data. Also making its search path as recursive and referred many other stack overflow related questions and answered but none of them worked in my case.
This has ruined my life since last day. Please help. Any help is appreciated.
Please check the attached image for more details.
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.
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