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

Build Old AWS Project #2872

Closed
smediomike opened this issue Apr 18, 2023 · 2 comments
Closed

Build Old AWS Project #2872

smediomike opened this issue Apr 18, 2023 · 2 comments
Labels
question General question

Comments

@smediomike
Copy link

Describe the bug

I have one GM product which already run on market, but my Mac system happen critical issue, I have to move to another new Mac system. but I can not make release build based on whole orginal project source with AWS Pod successfully.

Steps To Reproduce

two methods to reproduce this issue:

Case #1
1, copy one workable whole was project to another Mac system(like 13.3.1)
2, open orginal workspace and build
3, it can run on debug mode
4, but can not Archive one release build successfull

Detailed log as :
haseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/IntermediateBuildFilesPath/CloudBackup.build/Release-iphoneos/CloudBackup.build/Script-DD5674631C5690F17B691EE7.sh (in target 'CloudBackup' from project 'CloudBackup')
    cd /Users/mike.wu/p4/IOS/BRANCH/CloudBackup/CloudBackup
    /bin/sh -c /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/IntermediateBuildFilesPath/CloudBackup.build/Release-iphoneos/CloudBackup.build/Script-DD5674631C5690F17B691EE7.sh

mkdir -p /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/BuildProductsPath/Release-iphoneos/CloudBackup.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AWSAuthCore.framework" "/Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/InstallationBuildProductsLocation/Applications/CloudBackup.app/Frameworks"
building file list ... rsync: link_stat "/Users/mike.wu/p4/IOS/BRANCH/CloudBackup/CloudBackup/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AWSAuthCore.framework" failed: No such file or directory (2)
done

Case #2
1, I copy my source code without Pod project and pod file etc
2, I do start from CocoaPods steps from Pod init/ update pod file / pod install --repo-update
3, it will make new workspace 
4, but it can not make debug and release build, root cause is same to case #1

Expected behavior

It's better one system make correct project, another environment can copy and make build. or can make old project with case #2 steps.

Amplify Framework Version

1.28.1

Amplify Categories

API, DataStore, Storage

Dependency manager

Cocoapods

Swift version

5.0

CLI version

4.4

Xcode version

Xcode 14.2.1

Relevant log output

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/IntermediateBuildFilesPath/CloudBackup.build/Release-iphoneos/CloudBackup.build/Script-DD5674631C5690F17B691EE7.sh (in target 'CloudBackup' from project 'CloudBackup')
    cd /Users/mike.wu/p4/IOS/BRANCH/CloudBackup/CloudBackup
    /bin/sh -c /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/IntermediateBuildFilesPath/CloudBackup.build/Release-iphoneos/CloudBackup.build/Script-DD5674631C5690F17B691EE7.sh

mkdir -p /Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/BuildProductsPath/Release-iphoneos/CloudBackup.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AWSAuthCore.framework" "/Users/mike.wu/Library/Developer/Xcode/DerivedData/CloudBackup-hacchsqbopetljgtxrsizcluiqop/Build/Intermediates.noindex/ArchiveIntermediates/CloudBackup/InstallationBuildProductsLocation/Applications/CloudBackup.app/Frameworks"
building file list ... rsync: link_stat "/Users/mike.wu/p4/IOS/BRANCH/CloudBackup/CloudBackup/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AWSAuthCore.framework" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code

Is this a regression?

No

Regression additional context

No response

Device

Any

iOS Version

iOS16 etc

Specific to simulators

No response

Additional context

No response

@harsh62 harsh62 added the question General question label Apr 21, 2023
@harsh62
Copy link
Member

harsh62 commented Apr 21, 2023

@smediomike Thanks for opening the issue.
I cannot repro the issue in my local. Setting up with POD seems to work fine at my end. Some questions I have are:

  • Have you tried cleaning and clearing the derived data from the machine?
  • Would you be able to share the POD file?
  • If you have done anything different for release builds?
  • Do you have any special handling been done in the build script phase?

@harsh62 harsh62 added the pending-community-response Issue is pending response from the issue requestor label Apr 21, 2023
@smediomike
Copy link
Author

smediomike commented Apr 23, 2023 via email

@harsh62 harsh62 closed this as completed Apr 24, 2023
@github-actions github-actions bot removed the pending-community-response Issue is pending response from the issue requestor label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question
Projects
None yet
Development

No branches or pull requests

2 participants