I'm building my own SDK and got error about pch
** BUILD FAILED **
The following build commands failed:
ProcessPCH /var/folders/49/qmkbt97910v4p_h0f3c7ygzw0000gr/C/com.apple.DeveloperTools/6.1.1-6A2008a/Xcode/6.1.1-6A2008a/Xcode/SharedPrecompiledHeaders/VoxyPADFramework-Prefix-gfoeppzqeydinfdjwgglsszazzop/VoxyPADFramework-Prefix.pch.pch VoxyPADFramework/VoxyPADFramework-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
ProcessPCH /var/folders/49/qmkbt97910v4p_h0f3c7ygzw0000gr/C/com.apple.DeveloperTools/6.1.1-6A2008a/Xcode/6.1.1-6A2008a/Xcode/SharedPrecompiledHeaders/VoxyPADFramework-Prefix-dqgbxgrxhqfaflffhnvdflncjokz/VoxyPADFramework-Prefix.pch.pch VoxyPADFramework/VoxyPADFramework-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
As guide somewhere I have to remove the SharedPrecompileHeaders on Precompile Header Cache Path, but the path of it is
var/folders/49/qmkbt97910v4p_h0f3c7ygzw0000gr/C/com.apple.DeveloperTools/6.1.1-6A2008a/Xcode/SharedPrecompiledHeaders
I can't find it anywhere on my Mac, how can I manually remove it
Related
This is the error I got:
The following build commands failed:
CompileC /.../Library/Developer/Xcode/DerivedData/BarberApp-beyxycoeyxvbafccvpatsjhfeicq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-logger.build/Objects-normal/arm64/react_native_log.o /Users/orelbarclay/Documents/Projects/barber-app/node_modules/react-native/ReactCommon/logger/react_native_log.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-logger' from project 'Pods')
(1 failure)
I have switched to Xcode12 for one of my static library apps. I am trying to make XCFramework distribution. After running build command,
xcodebuild archive -scheme "MySDK" -sdk iphoneos -archivePath “./archives/ios.xcarchive” -SKIP_INSTALL=NO
I am getting below error when I switched Build Settings -> Build Libraries for Distribution to YES,
<unknown>:0: error: using bridging headers with module interfaces is unsupported
Command CompileSwiftSources failed with a nonzero exit code
** ARCHIVE FAILED **
The following build commands failed:
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler
CompileSwiftSources normal armv7s com.apple.xcode.tools.swift.compiler
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(3 failures)
This answer works but unfortunately creating .xcframework requires to set the option distribution YES.
How to resolve this issue?
Apple seems to be deprecating bridging headers in favor of modules, but their documentation regarding how to include C headers is missing. The information is instead found in the more detailed clang docs.
Try removing the bridging header from the project settings and instead create a module.modulemap file:
module MySdk {
header "MySdk-Bridging-Header.h"
export *
}
This has caveats, such as needing to import MySdk in your swift code and understanding that C functions will be exposed, but it got me over the hump.
One trick I discovered by trial and error is to include this modulemap file and C headers in the framework's Headers folder. This allows any app consuming the framework to automatically detect MySdk as a module.
I've been struggling with getting my react native instance to run and i keep hitting this:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/BannerComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/BannerComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/NativeExpressComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/NativeExpressComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/myProj.app
An error was encountered processing the command (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/alexvallejo/Library/Developer/CoreSimulator/Devices/31C5C7FC-9DE4-4F95-A7F5-50296C8CC6CB/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/0170A665-460A-4CDF-92B4-0FAC8FBE2224/myProj.app/myProj : No such file or directory
Launching org.reactjs.native.example.myProj
Any ideas on what's going on here? I dont have pod 'Firebase/AdMob' in my Podfile so i don't know why BannerComponent is trying to load.
Make sure you're building with the latest Xcode version. Had the same issue with outdated Xcode.
I am trying to run react native. But when I tried to build ios the below errors are showing
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze Base/RCTPlatform.m Analyze Views/RCTTabBarItem.m
Analyze Views/RCTTabBar.m Analyze Profiler/RCTProfile.m (4 commands
with analyzer issues)
The following build commands failed: CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTPlatform.o
Base/RCTPlatform.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o
Views/RCTTabBarItem.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBar.o
Views/RCTTabBar.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTProfile.o
Profiler/RCTProfile.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler Analyze
Base/RCTPlatform.m Analyze Views/RCTTabBarItem.m Analyze
Views/RCTTabBar.m Analyze Profiler/RCTProfile.m Libtool
/apps/snp/snapstaff_talent/ios/build/Build/Products/Debug-iphonesimulator/libReact.a
normal x86_64 Ld
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app/snapstaff_talent
normal x86_64 GenerateDSYMFile
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app.dSYM
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app/snapstaff_talent
Ld
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest/snapstaff_talentTests
normal x86_64 GenerateDSYMFile
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest.dSYM
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest/snapstaff_talentTests
(13 failures)
Installing
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app An
error was encountered processing the command
(domain=LaunchServicesError, code=0): The operation couldn’t be
completed. (LaunchServicesError error 0.) Launching
org.reactjs.native.example.snapstaff-talent An error was encountered
processing the command (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain
error 4.)
I am new on react native. I am using OS X El Capitan. please help me out of this.
I used the following instructions http://docs.phonegap.com/en/2.0.0/guide_command-line_index.md.html#Command-Line%20Usage for setting up the command line tools for iOS.
But when I try to build the project with $ /path/to/my_new_cordova_project/cordova/debug
I get this:
In file included from /Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.m:28:
/Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/MainViewController.o ios_project/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/AppDelegate.o ios_project/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
When I build the project with Xcode everything works fine but I´d prefer to use the command line tools.
I got:
Xcode 5.0
PhoneGap 2.9.1 and I have tried in 3.4.0
This error appears probably by using the workspace file. Trying with the xcode project directory should resolve the problem.