I am working on app and suddenly prefix.pch file deleted automatically and
this error comes:Command /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
i havn't found any working answer in google search.
Please help me out
It looks like the problem had to do with the Architecture settings on my sub projects. Xcode 4.2 changes the default Architecture to just armv7 instead of both armv6 and armv7. I had updated my main project to armv6 and armv7, but the sub-projects were still only using armv7. Once I updated all of the sub-projects then it started linking properly.
Related
When I try to do an archive build for "any iOS device", I receive this error:
Build input file cannot be found: '/Users/.../Library/Developer/Xcode/DerivedData/[app]-czrkuohjfzuzxxfobfoyptxhyoyo/Build/Intermediates.noindex/ArchiveIntermediates/[app]/InstallationBuildProductsLocation/Applications/[Product Name].app/[Product Name]'
I received this same error when building for an iOS simulator, but this post fixed it - Problems after upgrading to Xcode 12:ld: building for iOS Simulator, but linking in dylib built for iOS, architecture arm64.
I am also receiving a warning concerning the architectures that may or may not be relatable to the error:
None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, armv7s, armv7) which is not in EXCLUDED_ARCHS (arm64).
Build for "Any iOS Device" (for example, "Archive" because you want to upload to AppStore):
Delete arm64 from "Excluded Architectures"
Delete x86_64 from VALID_ARCHS
Add arm64 to VALID_ARCHS
All this changes on both "Build Settings", project and target. And if you want to build for simulator do the inverse path:
Add arm64 to "Excluded Architectures"
Delete arm64 from VALID_ARCHS
Add x86_64 to VALID_ARCHS
That works for me.
So I had the exact same issue. After updating to Xcode 12 I had originally set both my project and target 's 'Excluded Architecture' to arm64 in order to run on Simulator. But, as you mention, that blocks anything from working on Release / Real device. All I had to do was switch to 'Any iOS Simulator SDK = arm64' instead of all of them, see screen shot below:
link to screenshot
This error started happening for me with a SwiftUI app. I didn't need the file for my project, but the settings were set to generate a file anyways. What worked for me was to go into Project Navigator --> App Target --> Build Settings --> Packaging and delete the value (file name) for the Info.plist File key.
This problem wasted a lot of my time after upgrading to xcode 12, using React Native 0.63. Excluding architectures did not work for me.
Symptoms: "build input file could not be found..." when running on device in debug AND release. Simulator worked fine.
To Fix: Editor > Validate Settings... > Perform Changes
Now my app builds fine on device.
I know this question has been answered but this piece of information may help someone: This kind of error may also be produced if you have no node_modules folder e.g. you have deleted it and forgot to re-create it
I am using the GoogleMaps iOS SDK in my app and added it with cocoapods. However, after updating xCode from 7.2 I'm suddenly getting the following error: Could not build Objective-C module 'GoogleMaps'
I already deleted my DerivedData folder, updated cocoapods, reinstalled the GoogleMaps iOS SDK and cleaned and build the framework's scheme and my app's scheme. But nothing helped so far.
Make sure you have completed all the steps listed here: https://developers.google.com/maps/documentation/ios-sdk/start#adding_the_google_maps_sdk_for_ios_to_your_project
I did some research and found this Stack overflow related to your inquiry: Undefined symbols for architecture armv7
I hope this may help you.
I'm trying to archive my app in Xcode, and had a bunch of problems. After fixing the major ones, I'm having another couple errors. This one, I'm very much confused. I'm using the NMSSSH library in my app, and it works perfectly fine on iOS devices, as well as the simulator. However, when I try and archive it, I get the error saying:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_NMSSHSession", referenced from:
objc-class-ref in UserPi.o
ld: symbol(s) not found for architecture armv7s
Any ideas on what the issue could be? These are the #imports of the file it's talking about.
#import <Foundation/Foundation.h>
#import <NMSSH/NMSSH.h>
#import "ConnectionViewController.h"
My guess is that there is a mismatch in build architectures:
Your project is being built for the armv7s architecture
But the NMSSSH library has not been build for armv7s
You need to make sure that the library and your project use the same architecture settings, so either 1) remove armv7s from your project, or 2) add armv7s to the NMSSSH library build. Solution 2 of course only works if you are building NMSSSH yourself from source.
To change the architecture of a project
In Xcode in the Project navigator (left-hand side of the Xcode window), select your project
In the Standard editor (middle section of the Xcode window), select your project
Select the "Build settings" tab
You should now see a section titled "Architectures", and a build setting labelled "Architectures". The build setting is what you need to change.
To find out more about this issue try to google for "Undefined symbols for architecture armv7s" (have you tried that before?). There are also lots of questions on Stack Overflow on this issue, e.g. this one. Good luck.
i am using gdata-objectivec library for video sharing on Youtube from my app, i am using xcode 4.6 and iOS 6.0 to do this but the compiled static library "libGDataTouchStaticLib.a" does not support for the architecture armv7 and armv7s.
can anyone help me to compile the libGDataTouchStaticLib.a for armv7 architecture ?
i have also posted this on google group.
i have also seen this sample code and it successfully uploaded the video from iPhone simulator but giving error on device.
i have also tried to install it on device using xcode 4.3 but not got any success.
i have also changed some flags in target>build like header search path, other C linker flag etc and also followed this tutorial
i have also downloaded gdata-objectivec library from svn server using terminal window but i dont know how to compile libGDataTouchStaticLib.a using the command from terminal of mac os for armv7 architecture (xcode 4.5 or 4.6).
if anyone used gdata-objectivec library for video uploading on Youtube from latest xcode or successfully compiled libGDataTouchStaticLib.a for latest xcode then please help me?
Make sure to add below three items in your other linker flags in project's build settings:
-ObjC,-lxml2,-all_load. It worked for me.
Just remove the arv7s from the valid architectures under build settings and compile it would work for you.
before updating the archiving process work good but after updating when i archiving the app it gives a linker error to TestFlight Library error is:-
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/dhirajchoudhary/Documents/MyWorldOfExpo/HRWeekIndia/TestFlightSDK1.0/libTestFlight.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is any one know how to link the testflight library in Xcode 4.5, iOS 6.0
It's pretty much exactly what the error message says: your app supports multiple architectures, including armv7s. You're trying to link with the TestFlightSDK which doesn't include the armv7s architecture.
You need to either:
Use a newer version of the TestFlight SDK which includes the new armv7s architecture. I'm not sure if this exists yet
Remove the armv7s architecture from your application. It should still work on the iPhone 5 (which is the only device to use armv7s currently) but you would need to test
You need to install Test Flight SDK 1.1, which with support for arm7