i386: No such file or directory
Command /usr/bin/codesign failed with exit code 1
I'm getting this error and can't figure out why. My valid architectures are set to armv6 armv7 i386. The project builds and runs fine on the iPad and iPhone simulators, but when I come to build for archive/run with a device it fails. I've also tried to run the project on multiple devices but have the same problem on all.
Anyone know why I may be getting this problem? Thanks
In Build Settings Architecture make the settings as follows on both project and also in targer and clean and build with device
I managed to fix the problem by keeping my artchitetures and valid architeture to armv6 armv7, i just needed to clear the "Other Code Signing Flags" under the code signing build settings for the project and targets.
Related
I am develop an swift app which I have used CouchDB database. for that I am download the couchDB framework and add into my project. It works fine on simulator but, when I am run my app on iPad device it gives one error:
'CouchbaseLite(CBLDatabase.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)'
and for that in build settings I was change the enable bitcode to Yes.
but it doesn't works for me.
Please provide some guide line or an help or comment or sample code to solved that Problem.
Thanks in advance !
for that error in build settings I was change the enable bitcode to No, and it works for me.
Trying to update our app for iOS6 and iPhone 5, we (for now) still aren't able to completely move away from the Facebook Three20 library.
When debugging in the simulator for iPhone and iPad, everything works perfectly fine. When attempting to debug on an iPhone 5, we get the following failures:
ld: warning: ignoring file ..../Build/Products/Debug-iphoneos/libThree20.a, file was built for archive which is not the architecture being linked (armv7s): ..../Build/Products/Debug-iphoneos/libThree20.a
Followed by:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_TTTabItem", referenced from:
Is there a way to relink/rebuild the Three20 library for my target to ensure that it properly builds for armv7 and works correctly on the iPhone 5 for debugging?
I've tried messing around with the Projects' build settings, etc, but have not had any success getting this resolved.
Thank you!
After fiddling around for an hour I realized that I needed to go to my project, and for each attached Three20 project select it, go to that project's Build Settings, and manually update the Architectures to the new required armv7, armv7s.
This is an old app that's been submitted many times without problems. I've modified the code and the info.plist to support iOS 6 and iPhone 5, but didn't change the build settings at all. I've checked the certificates and provisioning profiles, they are all sound. All adhoc builds ran just fine on our devices. I'm using Xcode 4.5.
I build without errors and it archives just fine. It shows up in the Organizer. When I click Validate..., I click through just like normal, pick the right provisioning profile, but then it fails every time with the same three errors:
Unable to run the lipo command /Applications/Xcode.app...: can't open input file: ...(No such file or directory)
Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
The binary being analyzed must exist: ...
I've tried the answers in the following question: Binary being analyzed must exist, iOS App Archive in xcode and my app checks out.
I suspect the problem is that I've included armv6, armv7 and armv7s as valid architectures, but I really have no idea what the problem is because this all worked in Xcode 4.4.
What do I do to fix this?
You can not build armv6 binaries using Xcode 4.5, the support for armv6 has been dropped by Apple.
It seems your errors are pretty much compounded after it reaches the first error so if you fix it so it builds for armv7 and armv7s then it should fix the rest of the errors (since it'll generate a valid binary if the script is fine with everything else and be able to be analysed)
When I compile my project I get this error:
warning: (i386) /Users/Desktop/aug_9/iOSSample/SD_2.0.a(sdk743.o) object file '/Users/Desktop/aug_9/iOSSample/SD_2.0.a(sdk743.o)' doesn't contain architecture information for i386.
Do I need to add i386 in "Valid Architectures" in the build settings?
Can anyone advise me on how to fix this warning?
It would appear that you are trying to run in the simulator, and a library you are using does not support the simulator.
You might want to either check if the library has a build for the simulator, or just test your app on a real device.
I'm trying to implement the Cocoa plotting framework (Alpha Release 0.1) in my iPhone app.
I figured I'd first try to run the sample they provide. I attempted to open and compile the project located in /Source/examples/CPTestApp-iPhone/.
It says my base SDK was missing right off of the bat, so I edited the Project settings and the Active Target to use the iOS4 SDK, which I've done before for samples and had work. I'm not sure what to do. I'm running one of the newest Unibody Macbooks, with 10.6.4.
Here is the full error:
// - start - //
Check dependencies
[BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6 armv7).
// - end - //
Thoughts?
I also went to the Build settings for the target(s) that failed and added "i386" to the valid architectures
Try this:
Project Build Settings:
Architectures: Standard (armv6 armv7)
Base SDK: Latest iOS Build Active
Architectures Only: Checked Valid
Architectures: armv6 armv7
Delete any sub settings in the Architecture build setting.
Target Build Settings:
Same at project settings.
Frameworks
Add the SystemConfiguration.framework to your project. - Not sure why this had any impact.
Clean all targets.
Build for the simulator.
The long explanation for this can be found on our blog: http://longweekendmobile.com/2010/06/15/fixing-the-missing-required-architecture-arm-in-file-when-developing-for-ipad/
Adding i386 to the Valid Architectures list worked for me!
For me it was that I had to add i386 to the VALID_ARCHS list. Odd, but it fixed my problem for simulator builds.
See this post.
You have selected as active architecture "active arch=i386 (your Mac)" but the project compiles for " VALID_ARCHS=armv6 armv7 (iPhone Device)", try setting the right arch in the project settings, so it is built for iPhone as it should be.
This project appears to pre-date iOS 4, so you need to open up the .xcodeproj file for the Core Plot library itself, too. It probably also has a broken reference to an old iOS Base SDK and may need the architectures updated.
This happens all the time with old projects migrated to SDK 3.2/4.0. You have to open the target settings and change everything to SDK 4.0 or 3.2. You can still have the target OS be 3.0 if you want that. If it still says "missing SDK" you neglected to change one of those settings to 4.0 or 3.2.
armv6 armv7 , Works for me in valid Architecture .
If you tried all method with "NO SUCCESS"
Try to run project on you device, if it works on device then it will works fine on simulator too.