Open Nesquik opened 3 months ago
Maybe you did not edit android/settings.gradle
and react-native.config.js
as described in 'flyskywhy/react-native-gcanvas/README.md'?
Thanks for the reply, I had actually added them but still had the error.
The issue was deeper and related to the fact that I'm not running the bare workflow but the fully managed, so not having the ios/android folders commited to my project those changes wouldn't actually stick.
To solve permanently I dug deeper into plugins and added the includes in the gradle.settings permanently by following what was done here: https://github.com/microsoft/react-native-code-push/blob/3e208623a62f50c06454cd51d3a1cf3595fd3bcc/plugin/src/android/settingsDependency.ts
in my project, via a Expo Plugin.
Now, the project builds, and I've brought the FrequencyHistogram into my project, and with some difficulties I've managed to use it, great! Android looks fine, even though I'm having some issues running both the code and my state and keeping performance acceptable.
Besides that, I'm now working on the iOS part and I've added another plugin, following this kind of code: https://github.com/bndkt/react-native-widget-extension/blob/ee9d8974831025fa888868c38b4244529d58e428/plugin/src/withPodfile.ts#L6
I've only added the last part which pretty much sums to this:
podFileContent = podFileContent
.concat(`\n\n# >>> Inserted by my app \n`)
.concat(
`pod "GCanvas", :path => "../node_modules/@flyskywhy/react-native-gcanvas/GCanvas.podspec"`
)
.concat(`\n# >>> Inserted by my app `);
At this point the build gives this kind of error:
[RUN_FASTLANE] › Compiling @flyskywhy/react-native-gcanvas Pods/GCanvas » GPath2D.cpp
[RUN_FASTLANE] › Compiling @flyskywhy/react-native-gcanvas Pods/GCanvas » GPath.cpp
[RUN_FASTLANE]
❌ (ios/Pods/GCanvas/core/src/gcanvas/GPath.cpp:41:5)
39 | endAngle = endAngle + delta;
40 |
> 41 | assert((newStartAngle >= 0 && newStartAngle < pi2));
| ^ use of undeclared identifier 'assert'
42 |
43 | if (anticlockwise && startAngle - endAngle >= pi2) {
44 | endAngle = startAngle - pi2;
By investigating the issue (I'm no C++ developer) it looks like some .h files are missing in the original repo. Got any hints? Thanks!
This is the fastlane error before erroring out, which I guess depends on the above:
[RUN_FASTLANE] ▸ ** BUILD FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸ CompileC /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GCanvas.build/Objects-normal/x86_64/GPath.o /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/Pods/GCanvas/core/src/gcanvas/GPath.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE] ** BUILD FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] CompileC /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GCanvas.build/Objects-normal/x86_64/GPath.o /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/Pods/GCanvas/core/src/gcanvas/GPath.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
[RUN_FASTLANE] +---------------------------------------+
[RUN_FASTLANE] | Build environment |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.220.0 |
[RUN_FASTLANE] | sdk | iPhoneOS17.4.sdk |
[RUN_FASTLANE] +-------------+-------------------------+
Right about now I have tried building a development-simulator build on Expo's servers and I get this kind of message error instead:
Previous error was generated by a
eas build --profile development-simulator --platform ios --local
instead.
I have fixed the above, I lost several hours on this but the issue was due to me not re-running
yarn build plugin
to transpile the iOS plugin Typescript code to Javascript. ;(
Now, the very last issue resides on local compilation, when running the development-simulator build locally I get into this error:
[...]
RUN_FASTLANE] ⚠️ ld: ignoring duplicate libraries: '-lc++'
[RUN_FASTLANE] ⚠️ ld: search path '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/16ba7810-bf24-4195-8835-ea5327c72a69/build/ios/Pods/GCanvas' not found
[...]
That seems to break compilation locally:
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/nesquik/Library/Developer/Xcode/DerivedData/Funtimes-frhawfpihvdzjjbkyzajbyjtkssh/Build/Intermediates.noindex/ArchiveIntermediates/Funtimes/IntermediateBuildFilesPath/Funtimes.build/Release-iphoneos/Funtimes.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Funtimes' from project 'Funtimes')
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/nesquik/Library/Developer/Xcode/DerivedData/Funtimes-frhawfpihvdzjjbkyzajbyjtkssh/Build/Intermediates.noindex/ArchiveIntermediates/HOWErgo/IntermediateBuildFilesPath/Funtimes.build/Release-iphoneos/Funtimes.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Funtimes' from project 'Funtimes')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
[RUN_FASTLANE] +---------------------------------------+
[RUN_FASTLANE] | Build environment |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.220.0 |
[RUN_FASTLANE] | sdk | iPhoneOS17.4.sdk |
Any ideas?
Actually, I think the build is failing locally due to this:
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/default.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/grad.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/pattern.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/radiation.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/shadow.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/texture.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods')
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
Got any hints?
This is the fastlane error before erroring out, which I guess depends on the above:
[RUN_FASTLANE] ▸ ** BUILD FAILED ** [RUN_FASTLANE] ▸ The following build commands failed: [RUN_FASTLANE] ▸ CompileC /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GCanvas.build/Objects-normal/x86_64/GPath.o /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/Pods/GCanvas/core/src/gcanvas/GPath.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] ▸ (1 failure) [RUN_FASTLANE] ** BUILD FAILED ** [RUN_FASTLANE] [RUN_FASTLANE] [RUN_FASTLANE] The following build commands failed: [RUN_FASTLANE] CompileC /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GCanvas.build/Objects-normal/x86_64/GPath.o /var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/b777a47b-442d-4056-927e-5d28cdcfcbd1/build/ios/Pods/GCanvas/core/src/gcanvas/GPath.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] (1 failure) [RUN_FASTLANE] Exit status: 65 [RUN_FASTLANE] [RUN_FASTLANE] +---------------------------------------+ [RUN_FASTLANE] | Build environment | [RUN_FASTLANE] +-------------+-------------------------+ [RUN_FASTLANE] | xcode_path | /Applications/Xcode.app | [RUN_FASTLANE] | gym_version | 2.220.0 | [RUN_FASTLANE] | sdk | iPhoneOS17.4.sdk | [RUN_FASTLANE] +-------------+-------------------------+
The reason why can not support x64 in emulator was described here https://github.com/flyskywhy/react-native-gcanvas/issues/28#issuecomment-1549200608
Actually, I think the build is failing locally due to this:
[RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/default.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/grad.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/pattern.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/radiation.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/shadow.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] no rule to process file '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/7d7ba4f1-48c6-44fb-9ec7-d884da48a034/build/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/texture.glsl' of type 'text' for architecture 'arm64' (in target 'GCanvas' from project 'Pods') [RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
Got any hints?
Please try move 'core/src/gcanvas/shaders/.' in @flyskywhy/react-native-gcanvas/GCanvas.podspec
from s.source_files
to s.public_header_files
, and tell me the result.
I've moved them, the warnings disappeared but it's still crashing. Now honestly I've no idea how to debug the .sh crashing, I'm having some tough times finding on Google how to: :-)
[RUN_FASTLANE] › Compiling Funtimes » main.m
[RUN_FASTLANE] › Linking Funtimes » Funtimes
[RUN_FASTLANE] ⚠️ ld: ignoring duplicate libraries: '-lc++'
[RUN_FASTLANE] ⚠️ ld: search path '/var/folders/c9/47rlcmqj1f5c9mcc5777bkbw0000gn/T/eas-build-local-nodejs/2f62d9f0-f70e-4eef-8087-f35f0dbf0246/build/ios/Pods/GCanvas' not found
[RUN_FASTLANE] › Generating debug Funtimes » Funtimes.app.dSYM
[RUN_FASTLANE] › Executing Funtimes » Bundle React Native code and images
[RUN_FASTLANE] Bundler cache is empty, rebuilding (this may take a minute)
[RUN_FASTLANE] ⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » Funtimes/Funtimes » Build Phases » 'Upload Debug Symbols to Sentry'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
[RUN_FASTLANE] ▸ ** ARCHIVE FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/nello/Library/Developer/Xcode/DerivedData/Funtimes-dpwakjhvbmspllcvdlhmgsjwoyjb/Build/Intermediates.noindex/ArchiveIntermediates/Funtimes/IntermediateBuildFilesPath/Funtimes.build/Release-iphoneos/Funtimes.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Funtimes' from project 'Funtimes')
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/nello/Library/Developer/Xcode/DerivedData/Funtimes-dpwakjhvbmspllcvdlhmgsjwoyjb/Build/Intermediates.noindex/ArchiveIntermediates/Funtimes/IntermediateBuildFilesPath/Funtimes.build/Release-iphoneos/Funtimes.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Funtimes' from project 'Funtimes')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65
[RUN_FASTLANE]
[RUN_FASTLANE] +---------------------------------------+
[RUN_FASTLANE] | Build environment |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE] | xcode_path | /Applications/Xcode.app |
[RUN_FASTLANE] | gym_version | 2.220.0 |
[RUN_FASTLANE] | sdk | iPhoneOS17.5.sdk |
[RUN_FASTLANE] +-------------+-------------------------+
[RUN_FASTLANE]
On a positive note the application is properly building if I run an npx expo prebuild
, a npx pod-install
and then use Xcode to Product > Archive (albeit I have to manually select the development team and toggling a few environment vars sometimes) to get the .ipa.
I'm a bit of a loss, I'm still investigating if I can better debug the RUN_FASTLANE step
Hi there, while building locally a development apk:
eas build --profile development --platform android --local
I'm getting the following error:I'm on Mac OS. Any workaround? Thanks