XCode 4.3 - Build error "missing required architecture armv7" - xcode4

After upgrade XCode from 4.2 to 4.3 I've got below problem. I can't build it.
Do you guys have idea how can I resolve this problem? even some clue would be helpful to me.
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit, missing required architecture armv7 in file
Undefined symbols for architecture armv7:
"_STComposeString", referenced from:
-[NSMutableURLRequest_ParametersTest verifyDefaultParametersForRequest:] in NSMutableURLRequest+ParametersTest.o
-[NSMutableURLRequest_ParametersTest verifyModifiedParametersForRequest:] in NSMutableURLRequest+ParametersTest.o
-[NSMutableURLRequest_ParametersTest verifyEmptyParametersForRequest:] in NSMutableURLRequest+ParametersTest.o
-[NSString_URLEncodingTest testURLEncodedString] in NSString+URLEncodingTest.o
-[NSURL_BaseTest testURLStringWithoutQuery] in NSURL+BaseTest.o
-[OAHMAC_SHA1SignatureProviderTest testSignClearText] in OAHMAC_SHA1SignatureProviderTest.o
-[OAMutableURLRequestTest testGenerateNonce] in OAMutableURLRequestTest.o
...
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_NSMutableURLRequest_ParametersTest in NSMutableURLRequest+ParametersTest.o
_OBJC_CLASS_$_NSString_URLEncodingTest in NSString+URLEncodingTest.o
_OBJC_CLASS_$_NSURL_BaseTest in NSURL+BaseTest.o
_OBJC_CLASS_$_OAHMAC_SHA1SignatureProviderTest in OAHMAC_SHA1SignatureProviderTest.o
_OBJC_CLASS_$_OAMutableURLRequestTest in OAMutableURLRequestTest.o
_OBJC_CLASS_$_OAPlaintextSignatureProviderTest in OAPlaintextSignatureProviderTest.o
_OBJC_CLASS_$_OARequestParameterTest in OARequestParameterTest.o
...
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_NSMutableURLRequest_ParametersTest in NSMutableURLRequest+ParametersTest.o
_OBJC_METACLASS_$_NSString_URLEncodingTest in NSString+URLEncodingTest.o
_OBJC_METACLASS_$_NSURL_BaseTest in NSURL+BaseTest.o
_OBJC_METACLASS_$_OAHMAC_SHA1SignatureProviderTest in OAHMAC_SHA1SignatureProviderTest.o
_OBJC_METACLASS_$_OAMutableURLRequestTest in OAMutableURLRequestTest.o
_OBJC_METACLASS_$_OAPlaintextSignatureProviderTest in OAPlaintextSignatureProviderTest.o
_OBJC_METACLASS_$_OARequestParameterTest in OARequestParameterTest.o
...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I was getting the same linking error for the Simulator after upgrading from Xcode 4.2 -> 4.3.1. I noticed that new projects in 4.3.1 do work with Unit Tests, so just compared the project differences.
What fixed it for me was:-
Select Project in project navigator
Select Test Target
Select Build Settings
Go down to Framework Search Paths and single-click it
Delete whatever is there
Enter $(SDKROOT)/Developer/Library/Frameworks $(DEVELOPER_LIBRARY_DIR)/Frameworks
If you had any custom frameworks, add those back
Actually, Unit Tests run fine on the Device, too.

Looks like this was either an accidental (or on purpose) omission on Apple's part.
If (and only if) you are a registered Apple Developer, you can log into the Apple Developer Forums and if you copy this linked search query into your browser address bar, you will see other people have had the same problem.
For now, it looks like you can only use SenTestingKit on the simulator.

I had a similar issue with Xcode 4.4.
My solution path:
Removed SetTestingKit.framework from the main target's (the system under test) "link binary with libraries", leaving it in the test target as is. Not sure why it ended up there in the first place.

I believe this bug is now fixed in Xcode 4.4.1

Using xcode 4.6 and trying to add facebook SDK 3.1 I had this problem because I didn't select to add the files to my test target.
You should check both targets when you copy the framework.

I just upgraded to 4.3.1 There is a problem with SenTestingKit framework. I removed the test source code from the project, it builds ok. And it can run on 5.1 device. But I got _dyld_dyld_start error when I ran it on simulator. I had to remove SenTestingKit from the project to make it work on simulator.

Related

Error running flutter project using Firebase Database

I've been having this issue after adding firebase_database: ^7.0.0-dev.2 to my project. I've also looked at other issues on GitHub, here on S/O, and on the Flutter repo but to no success.
Some of the troubleshooting attempts I have tried include:
deleting the pod files, Podfile, Podfile.lock, etc.
running flutter clean and flutter pub get
running pod install
I've created a new flutter project and added firebase_core: ^1.1.0 and firebase_database: ^7.0.0-dev.2 to the pubspec.yaml. Therefore, I know the issue is not because of dependency conflicts with other flutter packages in my project.
Here is the output from the debug log when I try to run it on a simulator:
Launching lib/main.dart on iPad Pro (12.9-inch) (2nd generation) in debug mode...
Running pod install... 1,832ms
Running Xcode build...
Xcode build done. 3.4s
Failed to build iOS app
Error output from Xcode build:
↳
objc[4399]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f1f7c188) and ?? (0x117eb02b8). One of the two will be used. Which one is undefined.
objc[4399]: Class AMSupportURLSession is implemented in both ?? (0x1f1f7c1d8) and ?? (0x117eb0308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Realtime/FWebSocketConnection.m:22:9: fatal error:
'FirebaseCore/Sources/Private/FirebaseCoreInternal.h' file not found
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Realtime/FWebSocketConnection.m:22:9: note: did not find header
'Sources/Private/FirebaseCoreInternal.h' in framework 'FirebaseCore' (loaded from '/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/build/ios/Debug-iphonesimulator/FirebaseCore')
1 error generated.
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Core/View/FView.m:18:
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Api/Private/FIRDatabaseQuery_Private.h:19:
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Core/FRepo.h:17:
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Core/FPersistentConnection.h:19:
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Realtime/FConnection.h:17:
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Realtime/FWebSocketConnection.h:17:
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Utilities/FUtilities.h:17:9: fatal error: 'FirebaseCore/Sources/Private/FirebaseCoreInternal.h'
file not found
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Utilities/FUtilities.h:17:9: note: did not find header 'Sources/Private/FirebaseCoreInternal.h'
in framework 'FirebaseCore' (loaded from '/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/build/ios/Debug-iphonesimulator/FirebaseCore')
1 error generated.
In file included from /Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/FValueIndex.m:21:
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Utilities/FUtilities.h:17:9: fatal error: 'FirebaseCore/Sources/Private/FirebaseCoreInternal.h'
file not found
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Utilities/FUtilities.h:17:9: note: did not find header 'Sources/Private/FirebaseCoreInternal.h'
in framework 'FirebaseCore' (loaded from '/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/build/ios/Debug-iphonesimulator/FirebaseCore')
1 error generated.
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Core/View/FValueEventRegistration.m:18:9: fatal error:
'FirebaseCore/Sources/Private/FirebaseCoreInternal.h' file not found
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/FirebaseDatabase/FirebaseDatabase/Sources/Core/View/FValueEventRegistration.m:18:9: note: did not find header
'Sources/Private/FirebaseCoreInternal.h' in framework 'FirebaseCore' (loaded from '/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/build/ios/Debug-iphonesimulator/FirebaseCore')
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/hetpatel/Documents/MobileApps/FlutterProjects/flutter_application_1/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'Flutter' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPad Pro (12.9-inch) (2nd generation).
Found a workaround for now:
dropped firebase_core to version "0.7.0" and firebase_database to ^6.0.0

Flutter trying to installing packages

No matter which package I tried to install when running on iOS simulator get an error the same no matter which package.
fatal error: module 'name of the module I'm trying' not found
Is a new MacBook Air, so I can't emulate Android to see if is the same.
Been days stuck here
This is the output:
Failed to build iOS app Error output from Xcode build: ↳
objc[94975]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1faf938f0) and ?? (0x11acac2b8). One of the two will be
used. Which one is undefined.
objc[94975]: Class AMSupportURLSession is implemented in both ?? (0x1faf93940) and ?? (0x11acac308). One of the two will be used. Which
one is undefined.
** BUILD FAILED **
Xcode's output: ↳
/Users/rafy/Desktop/Flutter_App_with_Android_Studio/cte_baberia/ios/Runner/GeneratedPluginRegistrant.m:10:9:
fatal error: module 'firebase_auth' not found
#import firebase_auth;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To
resolve this, select a development team in the Runner editor. (in
target 'Runner' from project 'Runner')
Could not build the application for the simulator. Error launching
application on iPhone 12 Pro Max.
Please run a flutter clean and then post the outputs when you run these commands:
pub get
and
flutter build ios

Cause: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl

I have connected my Android application with firebase-database by putting this dependency (kapt 'com.google.firebase:firebase-database:16.0.1:15.0.0') but after that I am getting errors like the one mentioned in title also when I synchronized the project I am getting different errors like: Connection time out, Failed to resolved build listener.
Enabling/Disabling offline work and setting proxy in gradle.properties file doesn't work for me.
Also you guys have seen that I used 'kapt' in dependency as it is necessary to use, without it I am getting error "failed to resolve 15.0.0". Removing 15.0.0 doesn't work for me.
Error
Cause:org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;ing
I am using Android Studio 3.2 and sadly I can't update this version.
Gradle version: 5.1.1 and
Plugin version: 3.4.0

Maven build(with Flexmojos) for multi module project throwing an error

I am trying to setup a Flex/Java multi module project in Eclipse. Using Maven to run the build and generate the war file. The details of the versions I am using are as follows:
Flexmojos : 3.5.0
Flex framework/compiler : 4.5.1.21328
Target player : 10.2.0
And the playerglobal dependency in my pom file uses classifier as 10.2 with version 4.5.1.21328
Now when I run the build using 'mvn install', I get the following error:
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:3.5.0:compile-swf
(default-compile-swf) on project client: TargetPlayer and
playerglobal dependency version doesn't match! Target player: 10.2.0,
player global: 10.2 -> [Help 1]
Any ideas why this might be happening?
I tried just playing around changing those version numbers, but still couldn't make it work for Flex 4.5.1. Please let me know how to go about this (and if you need more information). Thanks.
Regards
Basith
Have you tried simply referencing "10.2" instead of "10.2.0"? I think there was only one Flash player deployed with a 3-segment version number.

New Static Library has build error "libtool exited with code 1"

I created a new static library in my iOS project and now I'm getting the build error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1
How do I go about debugging this?
To see the actual output and not just the error message, try building your target or scheme with xcodebuild from command line.
I had a problem with the same error message. In my case, I couldn't build for the simulator, but it worked find when building for the device. The output from xcodebuild confirmed that Xcode could not set the proper architecture to build for the simulator.
Long story short, it turned out that one build setting was corrupted. The Mach-O Type setting in the Linking category was set to Relocatable Object File for some reason. I switched it back to Static Library and the error disappeared.

Resources