ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
41 stars 39 forks source link

iOS example does not build (on Xcode15) #71

Closed Nikoro closed 9 months ago

Nikoro commented 11 months ago

I've followed the steps from the README The app does not build afterwards.

I've got this error:

`Could not build the precompiled application for the device. Error (Xcode): Cycle inside Runner; building could produce unreliable results. Cycle details: → Target 'Runner': CodeSign /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app ○ That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks” ○ That command depends on command in Target 'Runner': script phase “Thin Binary” ○ Target 'Runner' has process command with output '/Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Info.plist' ○ Target 'Runner' has copy command from '/Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/ShareExtension.appex' to '/Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/PlugIns/ShareExtension.appex'

Raw dependency cycle trace:

target: ->

node: ->

command: ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/_CodeSignature ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:CodeSign /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Frameworks/share_handler_ios.framework/ ->

directoryTreeSignature: � ->

directoryContents: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Frameworks/share_handler_ios.framework ->

CYCLE POINT ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Frameworks/share_handler_ios.framework ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution [CP] Embed Pods Frameworks /Users/dominikkrajcer/Library/Developer/Xcode/DerivedData/Runner-csdnndnszlwkwubsoumsabedfdgj/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-8FCE568B159CC1722162DBA4.sh ->

node: /Users/dominikkrajcer/Library/Developer/Xcode/DerivedData/Runner-csdnndnszlwkwubsoumsabedfdgj/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-8FCE568B159CC1722162DBA4-Pods-Runner-frameworks-Debug-input-files-d1422da66dad6035b62ca3c86d2cbf8a-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/dominikkrajcer/Library/Developer/Xcode/DerivedData/Runner-csdnndnszlwkwubsoumsabedfdgj/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-8FCE568B159CC1722162DBA4-Pods-Runner-frameworks-Debug-input-files-d1422da66dad6035b62ca3c86d2cbf8a-resolved.xcfilelist ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node: ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary /Users/dominikkrajcer/Library/Developer/Xcode/DerivedData/Runner-csdnndnszlwkwubsoumsabedfdgj/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: e ->

directoryContents: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/dominikkrajcer/AndroidStudioProjects/share_test/ios/Runner/Info.plist ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/PlugIns/ShareExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/PlugIns/ShareExtension.appex /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/ShareExtension.appex ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks ->

node: /Users/dominikkrajcer/AndroidStudioProjects/share_test/build/ios/Debug-iphoneos/Runner.app/Frameworks/share_handler_ios.framework

Error launching application on iPhone (Dominik) (2).`

Same thing happens with original share_handler_example

hatemragab commented 11 months ago

same for me!!

hatemragab commented 10 months ago

any updates? @Nikoro

gekosurf commented 10 months ago

see > accepted reply >> https://developer.apple.com/forums/thread/730974

udiedrichsen commented 10 months ago

The short answer which worked for my was this (copied from the link above):

Update: we managed to fix the issue on our end by moving the 'Embed Frameworks' build phase above the 'Run script' build phase(s).

Nikoro commented 10 months ago

I managed to fix it by moving "Embed Foundation Extensions" build phase above the "Embed Frameworks"

Rishab-ms commented 10 months ago

Thanks @Nikoro This worked

hatemragab commented 10 months ago

image thanks this image show the steps