I am pretty new using Carthage. I am using as dependency manager for my iOS app. I am trying to add RXSwift and SwiftEventBus. So this is my Cartfile:
github "cesarferreira/SwiftEventBus" == 1.1.0
github "ReactiveX/RxSwift" ~> 2.0
Running the update command, I got these errors and I don't really understand where is the problem.
*** Cloning RxSwift
*** Cloning SwiftEventBus
*** Checking out RxSwift at "2.2.0"
*** Checking out SwiftEventBus at "1.1.0"
*** xcodebuild output can be found in /var/folders/7n/94jxf5bj7zx9qblwljn64s080000gn/T/carthage-xcodebuild.dIWeah.log
*** Building scheme "RxTests-OSX" in Rx.xcworkspace
*** Building scheme "RxBlocking-tvOS" in Rx.xcworkspace
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
ld: warning: linking against dylib not safe for use in application extensions: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
ld: warning: linking against dylib not safe for use in application extensions: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftXCTest.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean 'uint64_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types/_intptr_t.h:30:9: error: unknown type name '__darwin_intptr_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'; did you mean '__darwin_ino_t'?
<unknown>:0: error: too many errors emitted, stopping now
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
<unknown>:0: error: could not build Objective-C module 'CoreFoundation'
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
Related
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Volumes/Projects/SDK/flutter-sdk/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.7.2+2/ios/Classes/MyCookieManager.swift:259:43
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Volumes/Projects/SDK/flutter-sdk/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.7.2+2/ios/Classes/MyCookieManager.swift:293:43
Could not build the application for the simulator
Error launching application on iPhone 11 Pro
I followed the instructions for iOS from here but the compilation is showing these errors. I'm guessing it's some sort of version incompatibility, but I believe I'm on the latest version of react-native-firebase. When I build the app, these errors show up:
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:91:51: expected a type
- (void)applicationReceivedRemoteMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage {
^
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:99:28: expected a type
didReceiveMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage {
^
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:278:50: expected a type
- (NSDictionary*)parseFIRMessagingRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:44:30: property 'shouldEstablishDirectChannel' not found on object of type 'FIRMessaging *'
[FIRMessaging messaging].shouldEstablishDirectChannel = YES;
^
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:223:31: no visible #interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'
[[FIRMessaging messaging] sendMessage:data to:to withMessageID:messageId timeToLive:[ttl intValue]];
^
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:279:43: property 'appData' not found on object of type '__strong id'
NSDictionary *appData = remoteMessage.appData;
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And the build failed:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening trustline.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace myapp.xcworkspace -configuration Debug -scheme myapp -destination id=2811E5D0-88A1-490E-AB1C-2F192015AFB2
...
** BUILD FAILED **
The following build commands failed:
CompileC /Users/matt/Library/Developer/Xcode/DerivedData/myapp-gpcpfeonrmwlebbsoklspvmumvzd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/RNFirebaseFirestore.o /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/firestore/RNFirebaseFirestore.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/matt/Library/Developer/Xcode/DerivedData/myapp-gpcpfeonrmwlebbsoklspvmumvzd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/RNFirebaseMessaging.o /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
In my package.json:
...
"react-native-firebase": "^5.6.0",
"#react-native-firebase/app": "^10.8.1",
"#react-native-firebase/firestore": "^10.8.1",
"#react-native-firebase/messaging": "^10.8.1",
...
How can I fix it?
This seems to be the problem.
From https://www.npmjs.com/package/react-native-firebase
⚠ The Hermes VM availble with react-native 0.60.3 and higher is not currectly supported. Some initial testing has been done and it appears that valid code in this library does not function correctly with Hermes.
I removed this package and it worked, as it seems to be separate from #react-native-firebase/ scoped packages.
I want to build samples/subsys/power/device_pm using clang6.0 so I do as follows:
export ZEPHYR_TOOLCHAIN_VARIANT=llvm
mkdir build and cd build
cmake -DBOARD=reel_board ..
make
Then, I got some errors:
[ 95%] Linking C executable zephyr_prebuilt.elf
clang-6.0: warning: argument unused during compilation: '--specs=nosys.specs' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-u _OffsetAbsSyms' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-u _ConfigAbsSyms' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
/usr/local/bin/ld.lld: error: linker.cmd:189: { expected, but got ALIGN_WITH_INPUT
>>> _bt_channels_area : ALIGN_WITH_INPUT SUBALIGN(4)
>>> ^
clang-6.0: error: ld.lld command failed with exit code 1 (use -v to see invocation)
zephyr/CMakeFiles/zephyr_prebuilt.dir/build.make:101: recipe for target 'zephyr/zephyr_prebuilt.elf' failed
make[2]: *** [zephyr/zephyr_prebuilt.elf] Error 1
CMakeFiles/Makefile2:557: recipe for target 'zephyr/CMakeFiles/zephyr_prebuilt.dir/all' failed
make[1]: *** [zephyr/CMakeFiles/zephyr_prebuilt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Is there any suggestion?
Thanks a lot!
reel_board is ARM right?
ARM is not supported for Clang yet unfortunately.
I'm trying to compile weechat,
%> brew upgrade weechat --debug
...
[ 86%] Built target weechat_gui_curses_normal
[ 87%] Building C object src/gui/curses/normal/CMakeFiles/weechat.dir/main.o
[ 87%] Linking C executable weechat
ld: archive has no table of contents file '../../../plugins/libweechat_plugins.a' for architecture x86_64
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
make[2]: *** [src/gui/curses/normal/weechat] Error 254
make[1]: *** [src/gui/curses/normal/CMakeFiles/weechat.dir/all] Error 2
make: *** [all] Error 2
bash-3.2$ exit
It fails with archive has no table of contents file for architecture x86_64, it seem to be a generic error, as it happens with mysql#5.5 and many other packages.
I also see ranlib errors
/usr/local/homebrew/bin/ranlib: libweechat_gui_curses_normal.a(gui-curses-term.o): unknown load command 0x32
Any ideas?
Resolved.
Simple do brew unlink binutils or specify RANLIB=/usr/bin/ranlib.
I encountered the same problem.
Version information: node -v : v7.10.0 npm -v : 4.6.1 cordova -v :7.0.1 angular/cli: 1.0.4 ionic -v : 3.3.0
The error message:
cordova compile ios
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova compile ios (exit code 1):
Error: EACCES: permission denied, open '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/cordova/build-extras.xcconfig'
gegaozhaodeiMac:SengledLife-0 gegaozhao$ sudo ionic cordova compile ios
cordova compile ios
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova compile ios (exit code 1):
(truncated) ... :/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS"
/usr/sbin/chown -RH root:wheel /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
SetMode u+w,go-w,a+rX /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
cd /Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/CordovaLib
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/Applications/Wireshark.app/Contents/MacOS"
/bin/chmod -RH u+w,go-w,a+rX /var/root/Library/Developer/Xcode/DerivedData/SengledLife-ewbxwhbmxfyrqvehvjnxjlgxqyej/Build/Intermediates/ArchiveIntermediates/SengledLife/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
=== BUILD TARGET SengledLife OF PROJECT SengledLife WITH CONFIGURATION Debug ===
Check dependencies
Signing for "SengledLife" requires a development team. Select a development team in the project editor.
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/SLLivePlaySdk.framework' of type wrapper.framework for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.slliveplayer/SLLivePlayBundle.bundle' of type wrapper.plug-in for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.snapNetwork/cloud' of type file for architecture armv7
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/ElementScanBulbCodeVIewSdk.framework' of type wrapper.framework for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/notice.gif' of type image.gif for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/ScanBulbCodeViewController.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/SlScanNavigationController.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/SLLivePlaySdk.framework' of type wrapper.framework for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.slliveplayer/SLLivePlayBundle.bundle' of type wrapper.plug-in for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.snapNetwork/cloud' of type file for architecture arm64
warning: no rule to process file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/ElementScanBulbCodeVIewSdk.framework' of type wrapper.framework for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/notice.gif' of type image.gif for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/ScanBulbCodeViewController.h' of type sourcecode.c.h for architecture arm64
warning: no rule to process file '/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/SengledLife/Plugins/com.sengled.zxing.barcodescanner/SlScanNavigationController.h' of type sourcecode.c.h for architecture arm64
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/cordova/build-debug.xcconfig,-workspace,SengledLife.xcworkspace,-scheme,SengledLife,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,SengledLife.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/gegaozhao/Desktop/SengledLife-0/platforms/ios/build/sharedpch
--- The above is my detailed information, if there is a good solution, please share, thanks