"generate-pch command failed with exit code 1" when making a new Xcode scheme - xcode

I'm following the instruction here http://www.teratotech.com/blog/xcode-7-steps-to-easily-switch-between-multiple-environments/ to generate different schemes for different environments..
I created a testing configuration and created a new scheme to use that configuration. However, when I build and run, I'm getting this error:
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
error: 'AFNetworking/AFNetworking.h' file not found
#import <AFNetworking/AFNetworking.h>
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/var/folders/f2/6j4b4kz54xy1vf_2gdlnrllc0000gn/T/My-Project-Header-47bffb.pch' for bridging header '/Users/me/Dev/my-project/My-Project-Header.h'
When I build with my original scheme, everything's fine... I only have 1 target. Am I missing anything?
EDIT: I'm using Cocoapods to manage my dependencies, if that makes any difference.

i solved this issue by running below commands
$ pod repo update
$ pod install
Usually such issue happens when project directory is changed or copied form some other machine.

Related

During Openssl build: How to fix "fatal error: apps/app_rand.d: no such file or directory, compilation terminated"

I am attempting to update openssl to 1.1.1 on centos 7 in order to start building OpenLDAP.
After pulling the openssl installation package and unzipping it in /usr/local/src/ I ran ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib. This command successfully configured openssl.
I then ran the make command to build openssl and got the following error:
cc1: fatal error: apps/app_rand.d: no such file or directory
compilation terminated
make(1): *** (apps/app.rand.o) Error 1
make(1): Leaving directory '/usr/local/src/openssl-1.1.1d'
make: *** (all) Error 2
The apps directory was created and does exist, but the app_rand.d file is not present inside of the apps directory.
I have downloaded all dependencies (i believe)
I am decent in linux, I have my rhcsa, but am not familiar with manually building software libraries like openssl. I have tried to do some research online but have not come up with any solutions. Any advice would be very much appreciated!

Check-and-run-apollo-codegen.sh for Apollo not working?

I am trying to install Apollo in my iOS Project. I follow the instructions here: https://www.apollographql.com/docs/ios/installation.html. When I complete the "Adding a Code Generation Build Step," I get an error. It cannot find the file check-and-run-apollo-cli.sh. The error is "Command PhaseScriptExecution failed with a nonzero exit code." So I checked the file path it was giving me. It seems that "check-and-run-apollo-cli.sh" doesn't exist, but "check-and-run-apollo-codegen.sh" does. So I changed the last line of the script in my project to check-and-run-apollo-codegen.sh. However, it still does not work ("Command PhaseScriptExecution failed with a nonzero exit code" again). What do I need to do?
Thanks.
I have the same error here on Apollo 0.20.0 using Cocoapods
So I use the script provided by Apollo here
And customized to my workspace
"${PODS_ROOT}/Apollo/scripts/run-bundled-codegen.sh" codegen:generate --target=swift --includes=./**/*.graphql --localSchemaFile="schema.json" API.swift
Worked for me =D

how to build mongodb-cxx-driver in win

I followed instruction on https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/, but I blocked at STEP4, it says:
CMake Error at CMakeLists.txt:135 (generate_export_header):
Unknown CMake command "generate_export_header".
I found this command exists for a long time. I tried cmake3.7rc1 and rc3, but error all the time.
How can I build bsoncxx?
just go to that CMakeLists.txt line 134 and add a new line with following code
include(GenerateExportHeader)
maybe it was included by some dependency in older versions

Scrapinghub deployment error: non-exit status 1

i get this error mesage when I try to deploy my project and I really do not understand why:error log
shub is unable to build the Python egg of your project. This could be related to a misconfigured setup.py. Try running the 'build egg' command yourself so you can take a look at the error message: python setup.py clean -a bdist_egg -d temp_directory (run it in your project directory).
If you don't have any custom/important code in your setup.py, you can try deleting it, and shub will auto-generate a vanilla one on the next deploy.

Adding a new Kernel Call in Minix 3

I have been trying to write a kernel call in Minix 3. I looked at the developer's guide and tried doing it, but came across an error in step 9.
# make /usr/src/${MACHINE_ARCH}
install ===> tools
install ===> lib
install ===> lib/csu
install /usr/lib/crt0.o
*** Error code 1
Stop.
make: stopped in /usr/src/lib/csu
*** Error code 1
Stop.
...
...
The error has been shown above. The link I followed is:
http://wiki.minix3.org/Releases/3.2.1/DevelopersGuide/NewKernelCall
Any idea why this error has come up? Or are there any other guides available in the internet? I haven't found any unfortunately.
Have you checked if the environment variable $MACHINE_ARCH is set?
Try this on your prompt:
echo $MACHINE_ARCH

Resources