Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile project on IOS and Android #63

Open
bin-umar opened this issue Jul 18, 2023 · 2 comments
Open

Can't compile project on IOS and Android #63

bin-umar opened this issue Jul 18, 2023 · 2 comments

Comments

@bin-umar
Copy link

Can't compile package, neither on Android, neither on IOS.

Here is Android result:

> Task :react-native-3d-model-view:compileDebugJavaWithJavac FAILED
....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/jahongir-ottr/ottrfi/ottr/node_modules/expo-secure-store/android/src/main/java/expo/modules/securestore/SecureStoreModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:8: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:9: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:80: error: cannot find symbol
  public void receiveCommand(RN3DView view, int commandType, @Nullable ReadableArray args) {
                                                              ^
  symbol:   class Nullable
  location: class RN3DViewManager
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/se/bonniernews/rn3d/RN3DViewManager.java:105: error: cannot find symbol
  @Nullable
   ^
  symbol:   class Nullable
  location: class RN3DViewManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/android/src/main/java/org/andresoviedo/app/model3D/services/collada/loader/ColladaLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

On IOS:

In file included from /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.m:1:
/Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.h:7:9: fatal error: 'RCT3DModel-Swift.h' file not found
#import "RCT3DModel-Swift.h"
        ^~~~~~~~~~~~~~~~~~~~
1 error generated.

warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] [RNFB] Core Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] [RNFB] Crashlytics Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ottr' from project 'ottr')
warning: Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/jahongir-ottr/Library/Developer/Xcode/DerivedData/ottr-fobwyqlpododpedhojfvxigrtxid/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT3DModel.build/Objects-normal/x86_64/RCT3DARModelViewManager.o /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelViewManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT3DModel' from project 'Pods')
        CompileC /Users/jahongir-ottr/Library/Developer/Xcode/DerivedData/ottr-fobwyqlpododpedhojfvxigrtxid/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT3DModel.build/Objects-normal/x86_64/RCT3DARModelView.o /Users/jahongir-ottr/ottrfi/ottr/node_modules/react-native-3d-model-view/ios/RCT3DARModelView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT3DModel' from project 'Pods')
(2 failures)
@vishesh9096
Copy link

Did you find a solution?

@vinay93
Copy link

vinay93 commented Apr 8, 2024

Any solution for this yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants