I used Carthage to manage my project,however when I import Alamofire, I got the following errors:
Building scheme "Alamofire watchOS" in Alamofire.xcworkspace
xcodebuild: error: Failed to build workspace Alamofire with scheme Alamofire watchOS.
Reason: The run destination My Mac is not valid for Running the scheme 'Alamofire watchOS'.
A shell task failed with exit code 70:
xcodebuild: error: Failed to build workspace Alamofire with scheme Alamofire watchOS.
Reason: The run destination My Mac is not valid for Running the scheme 'Alamofire watchOS'.
PS:cartfile content is :github "Alamofire/Alamofire" ~> 3.0
Can anyone help me? many thanks!
If you don't need to build the framework for watchOS, then be more selective about the platform you need.
$ carthage update --platform iOS
If you do in fact need the watchOS framework, then make sure you have watch simulators set up in your Xcode device manager. Otherwise there are a handful of carthage errors you can run into.
One final thing to remember is that you MUST be using Xcode 7 in order to use Alamofire 3.0.
Related
I have a react native app. I integrated one signal into android and ios separately.
There is no problem in android side.
After i am setting ios sdk, i am getting error while get archive for testfligt.
Error text:
.) Validate OneSignalNotificationExtension.appex
..) Command ValidateEmbeddedBinary failed with a nonzero exit code.
Before installing OneSignalNotificationExtension
I was able to get archive successfully. I think the problem is inside OneSignalNotificationExtension.
I use m1 macbook air and my ios is version 11.0.
I'm trying to build my react-native expo (46) app with an eas build and get this error:
ld: '/Users/expo/Library/Developer/Xcode/DerivedData/.../FBAEMKit.framework/FBAEMKit' 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. file '/Users/expo/Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/ArchiveIntermediates/.../FBAEMKit.framework/FBAEMKit' for architecture arm64
saying that I must enable Xcode setting ENABLE_BITCODE.
Is there any way to give this settinh in eas.json or app.json?
As stated in the comments by #brentvatne it's a problem with FBAEMKit that is used by react-native-fbsdk-next (I use the version 11.0.1)
I was able to get rid of the problem adding
"bitcode": "Debug"
in app.json under in the ios part.
(Please note that my IDE gave me an error but it was still valid and I'm now able to build my app)
We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?
Downgrade to atmost react-native 0.69
Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.
Getting the following error when I try to run my program on an iOS device
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
There is no other information displayed in the console about why the build has failed. I don't think my code is the issue because
It runs fine on the simulator, and
I tried running an example "Hello World" app and the same error occurred
I have recently updated my certificates and provision profiles, which is when this error started occurring.
I am running:
Node.js Version = 8.9.1
npm Version = 5.5.1
Appcelerator studio Version = 5.1.1.201809051655
Titanium SDK Version = 7.5.0.GA
Xcode Version = 10.1
Based on other forum posts that I have read, I have tried:
Cleaning the project
Using an older version of the Titanium SDK
Deleting old provision profiles from Xcode
Deleting old certificates from the keychain
Assigning correct provision profile and certificate from Run > Run Configurations
Removing modules used on the project
Using devices with different versions of iOS
Really at a loss of what else to try. Any recommendations would be greatly appreciated.
You can run appc run -p ios --log-level trace which will invoke the xcodebuild command with the highest possible log level. After that, the actual error will be shown. Most likely you are using a 3rd party module that is missing a framework link. If you got the log, you can paste it into a GitHub Gist and send it here, then we can find it for sure.
I have a question. I cloned VLCKit from (http://code.videolan.org/videolan/VLCKit.git) and try to compile as static framework for tvOS (params -f -t). But I can't find compiled framework (expecting .framework file). Where is it?
The framework flag is not available for tvOS at the moment. For tvOS we only provide a universal static library (*.a) with headers (universal in the sense that it includes a slice for the simulator as well as the device).
It seems that the compile process is broken because tvOS and iOS versions don't match: after compiling using tvOS 9.1, it complains about missing 9.0 SDK:
[info] Building MobileVLCKit (MobileVLCKit, Release, iphoneos)
xcodebuild: error: SDK "iphoneos9.0" cannot be located.
I am not very confident in understanding the compilation prices but it appears that the last phase must hardcode the compilation directories and apparently set a bad target but also use this information as the base SDK so I added a new parameter like below:
buildxcodeproj MobileVLCKit "TVVLCKit" phones appletvos9.0
buildxcodeproj MobileVLCKit "TVVLCKit" iphonesimulator appletvsimulator9.0
that replace the value for --sdk of xcodebuild in buildxcodeproj
Further the paths in final lipo commands are wrong
hope that helps