Open ZhengXingchi opened 4 years ago
Xcode_10.2.1.xip(您使用的是 macOS 10.13.3。该应用程序要求 macOS 10.14.3 或更高版本。) 后来使用了Xcode_5.1.dmg,还是没法用,参考了Xcode 与 macOS 系统版本的兼容问题 最后采用了Xcode_9.xip安装并放到application启动台上 Apple官方下载地址 iMyMac Mac Cleaner&&免费的PDF压缩器
* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> java.nio.file.AccessDeniedException: /xxxxxxx/rnapp/android/app/build/intermediates/transforms/dexBuilder/debug/0/androidx/core/R.dex
最后在命令行加sudo yarn android
解决,本来想参考完美解决:app:transformClassesWithDexForDebug,但是好像不是一个问题,没什么帮助
Getting these errors on initializing a new react native app:
Try updating Xcode to the latest. I was stuck in Mojave so couldn't update the Xcode. But after Catalina + latest Xcode. Build worked. Xcode 9.x definitely not gonna work with react native 0.60.0+
参考自Property 'passwordRules' not found on object of type 'UIView
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
...
[Could not find com.android.support:appcompat-v7:27.1.1.](https://github.com/lottie-react-native/lottie-react-native/issues/343)
I had the same issue. According to this issue Could not find com.android.support:appcompat-v7:26.1.0.
In the android gradle file you need to specify the following
compileSdkVersion 26 buildToolsVersion "26.0.1" and then find this text compile "com.android.support:appcompat-v7" and make sure it says compile "com.android.support:appcompat-v7:26.0.1"
In your build.gradle file add maven url 'https://maven.google' should look like this
allprojects { repositories { mavenLocal() jcenter() maven { url 'https://maven.google.com' } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } } Rebuild your project, then this problem has been solved 😄
[Build failed with an exception: Execution failed for task ':app:installDebug'. #15901](https://github.com/facebook/react-native/issues/15901)
adb devices
sudo react-native run-android --deviceId emulator-5554
将react-native版本改成0.38.0能解决问题。
iOS证书(.p12)和描述文件(.mobileprovision)申请 IOS Missing private key Apple开发者账号介绍及证书配置说明。 iOS 的「描述文件」是什么? iOS开发者证书和描述文件申请 一个苹果证书如何多次使用——导出p12文件
参考[Watchman crawl failed. After MacOS Catalina Update #751](https://github.com/facebook/watchman/issues/751)
To change the permissions for Watchman regarding the Documents folder, it's under Security & Privacy -> files & folders in the system preferences
Guys. I spent hours to figure this out. I found a solution.
If you still face this problem after you re-install node, watchman and expo cli etc, You gotta try this simple step. Trust me. Its all bcuz of catalina grant access to folders permission.
First, Kill all the server running and close your terminal.
Go to 'System preference' -> 'Security & Privacy' -> scroll down and click 'Full Disk Access' -> Make sure you checked on 'Terminal' and 'Watchman'. Save and restart ur laptop.
You are welcome.
User defaults from command line: IDEDerivedDataPathOverride = /项目地址/ios/build/cgjApp
error: /项目地址/ios/Pods/Target Support Files/Pods-NotificationService/Pods-NotificationService.debug.xcconfig: unable to open file (in target "NotificationService" in project "cgjApp") (in target 'NotificationService' from project 'cgjApp') error: /项目地址/ios/Pods/Target Support Files/Pods-NotificationService/Pods-NotificationService.debug.xcconfig: unable to open file (in target "NotificationService" in project "cgjApp") (in target 'NotificationService' from project 'cgjApp')
解决方案
cd ios
pod install
搭建开发环境