unity xcode 14 archive build fails with undefined symbol - xcode

Describe the issue
Build target UnityFramework
*x Project Unity-iPhone | Configuration Release | Destination Any iOS Device | SDK iOS 16.0
Link UnityFramework (arm64) 5.4 seconds
enter image description here

Related

Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'amplify_core' has a minimum deployment target of iOS 13.0

I'm setting up my Flutter build environment on my new M2 MacBook Air. I'm trying to build our company app, which builds fine on my i7 MacBook Pro. I'm getting the error below:
Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'amplify_core' has a minimum deployment target of iOS 13.0:
/source/code/path/build/ios/Debug-dev-iphonesimulator/amplify_core/amplify_core.framework/Modules/amplify_core.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
~/flutter/.pub-cache/hosted/pub.dartlang.org/amplify_analytics_pinpoint_ios-0.5.1/ios/Classes/FlutterAnalytics.swift:22:7
Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
The above error says its building for the x86_64 simulator on my M2? Am I missing a setting somewhere?
EDIT
I can run open ios/Runner.xcworkspace and change the Minimum deployment version of amplify_core to 11.0, but I need a real solution.

Unable to prepare iPhone for Development error while building on device

I am on iPhone 13 15.5 and Xcode 13.1
When I try to build on device I get this error

MAC OS project upgrades from Fabric to FirebaseCrashlytics (without CoCOPod)

We need to use Firebase Crashlytics in a project.
We do not use the CocoaPods libraries, and need a statically linked library (.a)
Could you help me with how to download Firebase Crashlytics library into our project?
Here is the error output from the build process:
Prepare build
Workspace PDF Reader Pro Edtition | Scheme PDF Reader Pro Edition | Destination My Mac
Using new build system
Building targets in parallel
Planning build
Constructing build description
Build target PDF Reader Pro Edition
Project PDF Reader Pro Edtion | Configuration Debug | Destination My Mac | SDK macOS 10.15
PDF Reader Pro Edition isn't code signed but requires entitlements. It is not possible to add entitlement...
OpenGL is deprecated. Consider migrating to Metal instead.
Building for macOS, but the linked framework 'FirebaseCrashlytics.framework' was built for Mac Catalyst.
Build failed 2020/6/28, 10:06 AM 2.9 seconds
1 error, 2 warnings
The GitHub project describes how to build the project without Cocoapods.
https://github.com/firebase/firebase-ios-sdk/tree/master/Crashlytics
Clone or download the project.
Run Crashlytics/generate_project.sh
open gen/FirebaseCrashlytics/FirebaseCrashlytics.xcworkspace

XCode 6 GM: linker error when building for device (Metal not found)

I'm trying to build my project in XCode 6 GM for device (base SDK version is 7.1), and I get linker error:
ld: framework not found Metal for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The same project builds perfectly in XCode 5 without any changes in project settings. (Also, build in XCode 6 for simulator succeeds.)
I'm building with SDK 7.1, why is XCode 6 trying to link to Metal anyway?
Having the same problem. I am able to build the app fine in Xcode 6 pointed to the simulator or a phone, but when archiving I get this error. I am using the iOS 7.1 SDK.
I am using cocoapods and found that I can fix the problem by either setting the 'Link Frameworks Automatically' to NO for the pods project, or by archiving while there is a device plugged in and the scheme is targeted to a device not just 'iOS Device.'
This is a problem caused by Xcode 6's default project build settings.
Edit: Here is another explanation of this solution: http://www.appsee.com/blog/dev/xcode-new-link-frameworks-automatically-fix-framework-not-found-metal-for-architecture-armv7
I had the same problem in a code base building fine iOS 8.0 SDK (Xcode 6.0.1) and having this issue with iOS 7.1 SDK (though in Xcode 5.1.1). There seem to be a lot of different project having this problem. See here for more details.
What fixed the issue for me was going to my targets 'Build Phase'-settings, 'Link Binary with Libraries' and there removing and re-adding the CoreVideo.framework, 'Product > Clean', a finally the 'Product > Run'.
Using the iOS 7.1 SDK with Xcode 6 is not a supported configuration. The linker is behaving correctly here. The 7.1 SDK doesn't contain Metal.framework to link against, and you have requested to link against Metal.framework. You need to use the iOS 8.0 SDK or later to use Metal.framework.

Not able to run sample heathkit project FitStoreandRetrieveHealthKitData on iPhone

I have downloaded sample Health-kit app (FitStoreandRetrieveHealthKitData)from apple developer site. Trying to run it on my iPhone with Xcode 6 beta.
But failed to run app on device and getting error
dyld: Symbol not found: _HKQuantityTypeIdentifierDietaryCalories
Referenced from: /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit
Expected in: /System/Library/Frameworks/HealthKit.framework/HealthKit
in /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit
Can any one has solution for this ?
HKQuantityTypeIdentifierDietaryCalories was renamed to HKQuantityTypeIdentifierDietaryEnergyConsumed. Make sure you're building the project with the version of the iOS 8 SDK that corresponds to the version of iOS 8 you have installed on your iPhone.

Resources