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

[Bug]: Run ios produce error #1309

Closed
1 task done
AlbanW opened this issue Aug 31, 2023 · 11 comments
Closed
1 task done

[Bug]: Run ios produce error #1309

AlbanW opened this issue Aug 31, 2023 · 11 comments

Comments

@AlbanW
Copy link

AlbanW commented Aug 31, 2023

What happened?

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Glog.build/OutputFileList-46EB2E0001F110-Flipper-Glog-xcframeworks-output-files-565719c624fa5f97738cda794496af6a-resolved.xcfilelist'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/OutputFileList-46EB2E0001F100-Flipper-DoubleConversion-xcframeworks-output-files-dfdd2040eaa90d19c010c7a90cfd9f31-resolved.xcfilelist'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/OutputFileList-46EB2E0001F150-hermes-engine-xcframeworks-output-files-3bdc6ef216b5b39df088ab62f2f7cabb-resolved.xcfilelist'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/YogaKit.build/Script-46EB2E0001D170.sh'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/OneSignalXCFramework.build/Script-46EB2E0001F120.sh'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/OpenSSL-Universal.build/Script-46EB2E0001F130.sh'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-DoubleConversion.build/Script-46EB2E0001F100.sh'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0001F150.sh'

note: Removed stale file '/Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Glog.build/Script-46EB2E0001F110.sh'

2023-08-31 19:00:52.429 xcodebuild[77123:18833820] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:C2E734D8-7F47-4B67-95EF-DAEF77B9A3BE, OS:16.4, name:Iphone SE }
{ platform:iOS Simulator, id:C2E734D8-7F47-4B67-95EF-DAEF77B9A3BE, OS:16.4, name:Iphone SE }
** BUILD FAILED **

The following build commands failed:
CompileC /Users/albanweill/Library/Developer/Xcode/DerivedData/AppFront-edlcilgdulevsthiacmkmfzllsiv/Build/Intermediates.noindex/AppFront.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/NotificationService.o /Users/albanweill/Downloads/github/Suport/AppFront/ios/OneSignalNotificationServiceExtension/NotificationService.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'OneSignalNotificationServiceExtension' from project 'AppFront')
(1 failure)

Steps to reproduce?

1. Install OneSignal from cocoapod as documentation say
2. try project with npm run ios

What did you expect to happen?

Openning application & ask for notification permission

OneSignal iOS SDK version

5.0.1

iOS version

14

Specific iOS version

No response

Relevant log output

no log

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Aug 31, 2023

Hello could you show your podfile integration with OneSignal? Have you tried pod cache clean --all and pod install --repo-update

@AlbanW
Copy link
Author

AlbanW commented Aug 31, 2023

Thanks, but now i can archive and build project but if i try to start it on emulator with npm start or npm run ios it didn't work (without error, just freezing)

@AlbanW
Copy link
Author

AlbanW commented Aug 31, 2023

Capture d’écran 2023-08-31 à 22 58 42

Console stuck like that

@AlbanW
Copy link
Author

AlbanW commented Aug 31, 2023

I found error : https://pastebin.com/Mj9Ce1fz but idk hwo to fix it @emawby

@AlbanW
Copy link
Author

AlbanW commented Sep 1, 2023

Capture d’écran 2023-09-01 à 02 02 34

@emawby
Copy link
Contributor

emawby commented Sep 1, 2023

That still looks like an issue with finding the library in your notification service extension. The dynamic linker is failing meaning it can't find the library at run time. Without knowing your Cocoapods setup it is hard to debug

@AlbanW
Copy link
Author

AlbanW commented Sep 1, 2023

Here is my podfile: https://pastebin.com/42xaRApY

@emawby
Copy link
Contributor

emawby commented Sep 1, 2023

Ah this is a react native project! It likely is either an issue with derived data or the runpath_search_paths build setting, but to make it less flaky you can actually remove the OneSignalXCFramework from your podfile completely (it will still be included by the react native dependency in your main target). Then in Xcode navigate to the Notification Service Extension project settings and add the following XCFrameworks as dependencies:
OneSignalCore.xcframework
OneSignalOutcomes.xcframework
OneSignalExtension.xcframework

Previously you would see a framework like this
image

It should now look like this
image

@AlbanW
Copy link
Author

AlbanW commented Sep 1, 2023

seems build but, now when i try to open my app it stay frozen

Enregistrement.de.l.ecran.2023-09-01.a.02.38.03.mov

@emawby
Copy link
Contributor

emawby commented Sep 1, 2023

Can you run with verbose logging or retrieve a stack trace to try to see what is happening?

@nan-li
Copy link
Contributor

nan-li commented May 15, 2024

Closing due to no response to getting logs

@nan-li nan-li closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants